Click here to Skip to main content
15,064,166 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is the following code is correct??

FirstName:<br /> <input type="text" name="firstname"/>
    <?php  $firstname=$_POST['firstname']; if(empty($firstname))
die("ERROR : Enter you firstname");
    ?> <br/>
LastName :<br /><input type="text" name="lastname"/>
    <?php $lastname=$_POST['lastname']; if(empty($lastname))
die("ERROR : Enter your lastname");
}   ?> <br/
Updated 1-Sep-10 3:18am
Christian Graus 1-Sep-10 6:25am
Why would someone read all of your code, looking for random issues ? Why don't you tell us what the issue is ?
Sunny s 1-Sep-10 6:43am
Sorry for that. ..
but the issue is that , this form is not display in browser...What is the problem in that code...
Sunny s 1-Sep-10 6:57am
plz give me some hint ...plzzzzz

1 solution

That's typically not the way to create a web form using PHP as the back-end.

I recommend you buy a book or look for better examples.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900