note 104961 added to faq
| From: | prakash dot sharma10 at yahoo dot in | Date: | Tue, 19 Jul 2011 06:07:29 +0000 |
| Subject: | note 104961 added to faq | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-181682@lists.php.net to get a copy of this message | ||
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>
----
Server IP: 69.147.83.197
Probable Submitter: 117.96.115.217
----
Manual Page -- http://www.php.net/manual/en/faq.php
Edit -- https://master.php.net/note/edit/104961
Del: integrated -- https://master.php.net/note/delete/104961/integrated
Del: useless -- https://master.php.net/note/delete/104961/useless
Del: bad code -- https://master.php.net/note/delete/104961/bad+code
Del: spam -- https://master.php.net/note/delete/104961/spam
Del: non-english -- https://master.php.net/note/delete/104961/non-english
Del: in docs -- https://master.php.net/note/delete/104961/in+docs
Del: other reasons-- https://master.php.net/note/delete/104961
Reject -- https://master.php.net/note/reject/104961
Search -- https://master.php.net/manage/user-notes.php