Re: Submit code
| From: | Kondwani Spike Mkandawire | Date: | Tue, 16 Jul 2002 12:06:00 +0000 |
| Subject: | Re: Submit code | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-107842@lists.php.net to get a copy of this message | ||
Algorithmically:
//in php
1) create a counter that will keep count of the # of variables that have
been set
2) if all your variables have been set spit out the relevant JavaScript
that runs the AutoSubmit function... (There are a couple onLine)...
...
It can follow the following Skeleton...
if((isset($var1))&&(isset($var2))&&....
echo "The JavaScript... Could Taget write it to another file as
opposed to spitting out HTML run the function onLoad..."...
"Mindhunter" <MindHunter@mailbox.co.za> wrote in message
news:20020716063256.51210.qmail@pb1.pair.com...
> I am looking for PHP code that will submit (post) a form automaically to a
> ANOTHER php page. I do not want to press a submit button. I have found a
> class at PHPClasses but it is too complicated for my needs. What is the
> simplest way of doing this? What is the theoretical approach?
>
> The reason I need this is that I have a table output from a database after
> one submits 'n list of variables (form inputs). I want to update a graph
in
> another Iframe automatically without clicking on another submit button.
>
> Tx
> MH
>
>