Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML to PHP

Status
Not open for further replies.

ZOR

Technical User
Jan 30, 2002
2,963
GB
I have looked for a reference, probably gone past it.

Having a Log In type of HTML page, how do I go from the submit button to the PHP page where it directs further. I have only 1 field on the HTML page at present as enough for now. Thanks
 
Getting warmer. I have an error message comming up:

Parse error: parse error, unexpected T_STRING in /home/public_html/handlerform.php on line 11

The HTML Page is:
<html>
<head>
<title>Html form</title>
</head>
<body>
<form action="handlerform.php" method="post">
Log In <input type="text" name="array[Yourname]" size="20" ><br>
<br>
<br>
<br>
<input type="submit" name="submit" value="Submit!">
</form>
</body>
</html>


The PHP page is:
<html>
<head>
<title>Passed Over</title>
</head>
<body>
<?php


$array['name'] = $_POST['array']['Yourname'] . '
;
print ('Your full name is '. $array['name']);
?>
</body>
</html>

Any idea where its wrong? Many thanks
 
Many thanks, managed to fix it. Got to do what the wife wants now, had my so-called fun for a while. Regards

print ('Your full name is '. $array['name'] . "<br>\n");
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top