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
Share on other sites

  • 3 months later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.