Jump to content


Photo

$_POST error before anything is posted!?


  • Please log in to reply
1 reply to this topic

#1 sr1200

sr1200
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 17 April 2006 - 08:12 PM

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

<input name="uid" type="text" id="uid" value="<? echo $uid; ?>" maxlength="30" />

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

#2 dark dude

dark dude
  • Members
  • PipPipPip
  • Advanced Member
  • 53 posts

Posted 20 July 2006 - 04:40 PM

<input name="uid" type="text" name="uid" value="<? echo $uid; ?>" maxlength="30" />

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users