Subject: Dont just look at the title , Click on to read mor
Posted By: lunsea Post Date: 10/6/2005 12:31:52 AM
HelOO! evryone out there!! hehe!! hope u guys out there able to help me out abit.

i wanted to validate the form so i place the php_self in the form.
if all the input are all succesfully fill up!! how do i post it to another page??
pls pls pls pls helP!PP!P!



<?
if(isset($_POST["continue"])  )
{

    if($_POST["name"] == "" )
    {
        echo "Fill Up The Name ";
    }
}
?>




<form method="post" action="<? echo $_SERVER['PHP_SELF']; ?>">
<br>
<br>
Name :
<input type="text" name="name">
<br>
<br>
<input type="submit" name="continue">
</form>

Reply By: richard.york Reply Date: 10/6/2005 8:17:05 AM
Well, that depends on how you want to get to the next page. br / br / For instance you can do something like this, provided that this validation happens as the very first item in the document e.g. there is no HTML or whitespace before the opening <?php delimiter . br / br / [code] br / <?php br / br / if isset $_POST[ continue)  )
{
    if(empty($_POST["name A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design
Reply By: lunsea Reply Date: 10/6/2005 8:46:58 AM
thnks for your reply buddy!! !!!!(Y) owe u 1


Go to topic 27327

Return to index page 458
Return to index page 457
Return to index page 456
Return to index page 455
Return to index page 454
Return to index page 453
Return to index page 452
Return to index page 451
Return to index page 450
Return to index page 449