Hello Sir,
Thanks for sending me right code for form handler for blank text box but i have
follwing error...message after clicking on submit button.
Parse error: parse error, unexpected '{' in c:\inetpub\wwwroot\find.php on line
8
see this is my html code named :valid.html in wwwroot folder.
code:-
<Html>
<head>
<form method =post action ="find.php">
</head>
<title> TextField Program</title>
<input type="text" name=name>
<input type=submit>
</html>
.....and the PHP code is this------->
code:-
<?php
if ((is_array($_POST)) && isset($_POST['submit']))
{
if (!isset($_POST['name'])
{
$err = 1; $errmsg[] = "Please enter your name";
}
else
{
$name = addslashes($_POST['name']);
}
}
after run the html file witout entered the text i have clicked on submit
button then above error message i have got so plz help me for it, guide me for
it plz.
Thanks
Yogesh.
---------------------------------
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail Beta.
[Non-text portions of this message have been removed]
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/