sr1200 Posted April 17, 2006 Share Posted April 17, 2006 Really simple... this works with mysql (yeah yeah... i know i dont have the luxury of using mysql at this job)I have a form field called (for example) f_namei have code for that field[code]<input name="uid" type="text" id="uid" value="<? echo $uid; ?>" maxlength="30" />[/code]see that value=echo thing....before anythin is posted, i am getting an error saying that the variable is undefinedOnce i clear that out and post something everything is fine.Is there anyway to get that to not error out?I need the default to echo the input of the user for error checking. (do i have to just make a separate form for this purpose... :(Thanks Quote Link to comment https://forums.phpfreaks.com/topic/7632-_post-error-before-anything-is-posted/ Share on other sites More sharing options...
dark dude Posted July 20, 2006 Share Posted July 20, 2006 [code]<input name="uid" type="text" name="uid" value="<? echo $uid; ?>" maxlength="30" />[/code]Use name="" not id="" ;) Quote Link to comment https://forums.phpfreaks.com/topic/7632-_post-error-before-anything-is-posted/#findComment-61131 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.