Re: Update fields on same page
| From: | Jayme Jeffman Filho | Date: | Wed, 20 Sep 2000 19:11:43 +0000 |
| Subject: | Re: Update fields on same page | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-3000@lists.php.net to get a copy of this message | ||
I can tel two ways of doing this task with PHP, both need a call to a PHP
script, you can use a submit button or a Ancor tag to call it.
1. The script is on the same file of your html code. Put the file url on the
ACTION property of the <FORM> tag. When the user press the button or click
on the link your page is reloaded with the data of the form.
2. The script is in another file of your html code. Put the url of this file
on the ACTION property of the <FORM> tag. When the user press the button or
click on the link your script is run and you can process all without sending
any html code to the client. Use a "header" statement to reload the html
code with the data processed been passed along the html file url
("file.html?data1=$d1&data2=$d2...").
I hope this helps.
Jayme.
http://www.conex.com.br/jjeffman
-----Mensagem Original-----
De: Yvonne Rojas <yrojas@juno.com>
Para: <php-db@lists.php.net>
Enviada em: quarta-feira, 20 de setembro de 2000 14:27
Assunto: [PHP-DB] Update fields on same page
> This is a newbie question so please bear with me.
>
> What is the best way to update text fields that are on the same page as
> a drop-down list, when a user selects data from a drop-down list? From
> the input of the drop-down list I plan to query a table and populate the
> text fields, but I want to do this without having to use a submit button
> and going to a different page.
>
>
> Help!
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>