As you know, PHP can't do the work becuase it is on the server side, not hte
client side.  Meaning, when the server side is finish, all done, then it go
directly to the client side (web browser).  If you want PHP to do something
then you'll have to do something to the webpage, like a click button or
something to send it back to the server side.  So, that's where Javascript
come into play.  Javascript is the client side and it can detect things for
you and do the work for you.  Hope that help!


"Steve Bradwell" <[EMAIL PROTECTED]> wrote in message
> Well, I'm not sure if this is what your looking for but the simplest way
> might be to use JavaScript. Have the second form that you want to post
> without a submit button being clicked have an onSubmit event. So on submit
> of the first form, javascript will submit the second without the user
> clicking a button. Check this link.
> Hope this helps,
> -Steve.
> -----Original Message-----
> From: MindHunter [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 2:33 AM
> Subject: [PHP] Submit code
> 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
> another Iframe automatically without clicking on another submit button.
> Tx
> MH
> --
> PHP General Mailing List (
> To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to