Re: problems trying to update a form field
| From: | Jouni Ahto | Date: | Tue, 27 Jun 2000 15:04:48 +0000 |
| Subject: | Re: problems trying to update a form field | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-3349@lists.php.net to get a copy of this message | ||
On Tue, 27 Jun 2000 david.tansley@acelondon.co.uk wrote:
>
>
> Hello,
> I am getting a record back to a form for the user to edit/update.
> The mysql field is called 'header'. I have inserted it as the 'value' in
> a "input text line", for the user to overtype....
> echo "<INPUT TYPE=\"text\" NAME=\"header\" size=\"49\"
> VALUE=$header>";
>
> I then call my php script that does the update, but the text field $header does
> not
> get passed updated, no matter what I type.
> echo "<A
> HREF=\"dbchange.php3?rowidd=$rowidd&header=$header\">UPDATE</A>";
>
> What am I doing wrong please ??
How could PHP change the value of $header in your href when you type
something to the input field text, because that happens in your browser,
and PHP works on the server side?
Use the "<FORM>" tag.
-- Jouni Ahto