Re: POST without a button
| From: | Robert J. Cissell | Date: | Wed, 30 Aug 2000 17:23:48 +0000 |
| Subject: | Re: POST without a button | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14449@lists.php.net to get a copy of this message | ||
You can generate the html with the data in a form, and in the body tag put
an onload to a javascript function that'll submit the form right then. Not
exactly fancy or anything, but gives you something to work with.
> I have an HTML/Javascript file which has a form in it whose action is to
> call my PHP4 file. After PHP4 stuffs some of the data into a database, it
> needs to POST to a remote html file.
>
> The PHP4 file is invisible, generates no HTML except in the case of an
> error. How do I invisibly do another post without putting up a submit
button?
>
> I thought of using header("location:"), but I understand from the manual
> that headers should go at the very top of the file, and I want the entire
> file to execute, then jump to the new address.
>
>
>
>
> *************************************************
> Ron Newman
> Troubadour Technology
> http://www.imt.net/~ronman/
> *************************************************
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>