note 104961 rejected from faq by danbrown

From: Date: Tue, 19 Jul 2011 15:51:56 +0000
Subject: note 104961 rejected from faq by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-181704@lists.php.net to get a copy of this message
Note Submitter: prakash dot sharma10 at yahoo dot in ---- hi im new in php i have creted a form in html with find create and delte button and i written code into it find button is working properly but crete not working and not showing any error msg im pasting code here plz any bdy help me **************** <?php $find=$_POST['search']; if(isset($_POST['Find'])){ if(file_exists($find)){ echo"file $find exist"; } else{ echo"file $find not found"; echo $_SERVER['PHP_SELF']; }if($size>0) { plz sombdy help me what is the error if=fpen($x,"r")or die"file not found";}} ?><?php $x=$_POST['search']; if(isset($_POST['Create'])){ if(!file_exists($x)){ touch("$x"); echo "file $x is created"; } else{ $e4="not found"; }} ?> <html> <title>find flie</title> <head> <style> body{width:250px; height:150px; margin:auto; color:} .box1{width:180px ; height:120px; background-color:#999999; border:thin solid #333333; padding-left:5px;} </style></head> <body> <div class="box1"> <form method="post" action="findfile.php" > <lable> <b>Find The File</b></lable> <input name ="search" type = "text" /> <br/> <br> <input type="submit" name="Find" Value ="Find" /> <input type="submit" Name ="Create " value="Create" /> <input type="submit" Name ="delete " value="Delete" /> </form> </div></body></html>

« previous php.notes (#181704) next »