Jump to content

$_POST error before anything is posted!?


sr1200

Recommended Posts

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_name
i 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 undefined

Once 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
Link to comment
https://forums.phpfreaks.com/topic/7632-_post-error-before-anything-is-posted/
Share on other sites

  • 3 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.