thefollower Posted November 4, 2007 Share Posted November 4, 2007 I have a form which is meant to post a value to the process page but it wont obtain it.. this is what i have withing my form: <input type="text" id="check" style="position:absolute;left:326px;top:620px;width:144px;font-family:Courier;font-size:19px;z-index:1" size="16" name="Username" value=""> <input type="submit" id="Button2" name="Checker" value="Check Now!" style="position:absolute;left:290px;top:650px;width:210px;height:24px;z-index:13"> Then i got: If (isset($_POST['Checker'])) { $Username = mysql_real_escape_string($_POST['check']); Echo $Username; } The echo produces nothing =/ Link to comment https://forums.phpfreaks.com/topic/75968-solved-form-obtaining-post-value/ Share on other sites More sharing options...
marcus Posted November 4, 2007 Share Posted November 4, 2007 The username input name is "Username" not "Check" Link to comment https://forums.phpfreaks.com/topic/75968-solved-form-obtaining-post-value/#findComment-384549 Share on other sites More sharing options...
kratsg Posted November 4, 2007 Share Posted November 4, 2007 id="check" is true, however, id's are not use to assign values to variables, the name attribute is. Link to comment https://forums.phpfreaks.com/topic/75968-solved-form-obtaining-post-value/#findComment-384589 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.