disabled text box revised

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 3
Joined: Fri Jan 14, 2005 8:30 am

disabled text box revised

Postby l1234567890 » Fri Jan 14, 2005 8:40 am

When an text box is disabled, eventhough it got value, and try to submit,post to a php script, $_POST[] can't retrieve the text box value., Why ???


<form name="aa" action="aa.php">
<input type="text" name="bb" value="100" disabled>

When this form is submitted, the $_POST["aa"] return empty instead of 100. :eek:

User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby Alexej Kubarev » Fri Jan 14, 2005 9:07 am

because you are trying to get post of a FORM.. aa is a form name... you should try to get $_POST['bb']

Return to “HTML Basics”

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest