Jump to content

Archived

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

sr1200

$_POST error before anything is posted!?

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

Share this post


Link to post
Share on other sites
[code]<input name="uid" type="text" name="uid" value="<? echo $uid; ?>" maxlength="30" />[/code]

Use name="" not id="" ;)

Share this post


Link to post
Share on other sites

×

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.