tcorbeil Posted April 4, 2007 Share Posted April 4, 2007 Hello again. Just wondering.. if I have this line: <input name="UserName" type="text" id="UserName" size="45" maxlength="25" /> How do I get a php variable get the value from the HTML variable? Can I do: $var1 = 'UserName'; Any suggestions would be appreciated. T. Quote Link to comment Share on other sites More sharing options...
emehrkay Posted April 4, 2007 Share Posted April 4, 2007 you have to do it after the form is submitted via the $_POST superglobal so $var1 = $_POST['UserName']; Quote Link to comment Share on other sites More sharing options...
tcorbeil Posted April 4, 2007 Author Share Posted April 4, 2007 Thanks. Got it. T. Quote Link to comment 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.