Hey guys,
How do I retrieve a the php value stored in the textbox?
EG
<input disabled="disabled" type="text" size="25" name="dob" value="<?php echo $row["DOB"] ?>" />
I have tried to use
$dateOfBirth = $_POST["dob"];
echo $dateOfBirth
But however it does not work. It works when its something like this:
<input disabled="disabled" type="text" size="25" name="dob" value="Hello" />
Can someone help ASAP. Thank you in advance
Retrieving PHP Textbox values in Self Submit
Page 1 of 14 Replies - 447 Views - Last Post: 27 May 2012 - 11:22 PM
Replies To: Retrieving PHP Textbox values in Self Submit
#2
Re: Retrieving PHP Textbox values in Self Submit
Posted 27 May 2012 - 09:21 PM
If the input field is disabled, then its value is not stored in $_POST
This post has been edited by xxxjj18: 27 May 2012 - 11:11 PM
#3
Re: Retrieving PHP Textbox values in Self Submit
Posted 27 May 2012 - 10:46 PM
#4
Re: Retrieving PHP Textbox values in Self Submit
Posted 27 May 2012 - 11:10 PM
You can use the readonly attribute; the content won't be editable and it will still display in the textbox.
http://www.w3schools...ut_readonly.asp
http://www.w3schools...ut_readonly.asp
#5
Re: Retrieving PHP Textbox values in Self Submit
Posted 27 May 2012 - 11:22 PM
xxxjj18, on 27 May 2012 - 11:10 PM, said:
You can use the readonly attribute; the content won't be editable and it will still display in the textbox.
http://www.w3schools...ut_readonly.asp
http://www.w3schools...ut_readonly.asp
Thank you very much!
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote





|