Couldn’t find a forum for Numpties, so though Newbies may be nearly as good!
Help. I am wanting to write a form whereby on page1.php a user inputs their name which is sent to page2.php – success, I have managed thus far. In page2.php I need to display “welcome $user, so far so good.
Also on page2.php I want a form to be completed which is emailed to webmaster@mydomain.com using mailForm, but how do I get the user name to show as a hidden field and be processed by the formMail?
Tried every variation of the following:
<html>
<head>
<title>page2</title>
</head>
<body>
<?php
print "Welcome $user";
?>
<form name="form1" method="POST" action="process.php">
<p>
<input type="hidden" name="name" "value="<?php print $user?>"> </p>
<p>
Tel No.
<input type="text" name="tel_no">
<br>
<input type="submit" name="Submit" value="Test">
</p>
</form>
</body>
</html>
The process.php action works like a treat, but fails to return the hidden field.
Any help for a php virgin?
Thanks