Clancy19 Posted September 30, 2009 Share Posted September 30, 2009 I'm a PHP beginner using notepad++ trying to make my own web based application and I'm having some troubles with simple forms between HTML and PHP. Can you tell me why this coding doesn't work and how to fix it please. <html> <form action ='help.php' method ="post"</form> <p>First Name: <input type= "text" Name = "fname" size = "10" maxlength = "25"/></p> <input type = "submit" name = "submit" value = "submit" /></p> </html> <?php $name = stripslashes($_POST['fname']); echo $name; ?> Thanks Quote Link to comment https://forums.phpfreaks.com/topic/176027-solved-forms-trouble/ Share on other sites More sharing options...
trq Posted September 30, 2009 Share Posted September 30, 2009 Your html is pretty messed up, nothing to do with php. <html> <body> <form action='help.php' method="post"> <p>First Name: <input type= "text" Name="fname" size="10" maxlength="25"/></p> <input type="submit" name="submit" value="submit" /></p> </form> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/176027-solved-forms-trouble/#findComment-927520 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.