there is some code at the PHP code exchange that allows you to do http post
with only PHP (not using java script)...  it might not do exactly what you
have in mind, but it's an interesting alternative.

remco chang
www.bountyquest.com


----- Original Message -----
From: "Richard S. Crawford" <[EMAIL PROTECTED]>
To: "Chris" <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]>
Sent: Thursday, January 25, 2001 6:24 PM
Subject: Re: [PHP] Post without submit?


> Sorry, just to be a bit clearer...  Suppose you wanted to associate it
with
> a link, you could do something like the following:
>
> <a href="#" onClick="javascript:doSubmit();">click here to submit</a>
>
> Hope that helps.
>
>
>
> At 03:22 PM 1/25/01 -0800, Richard S. Crawford wrote:
> >Without knowing exactly what you want to do, I would try something like
> >the following in JavaScript:
> >
> >function doSubmit() {
> >         document.form.submit()
> >}
> >
> >Then associate the function with any sort of desired event.  In a project
> >of mine, I have it attached to a keypress function so that the form is
> >submitted when the user presses the enter key from the last form field.
I
> >suppose you could also put it in the BODY tag if you're feeling
especially
> >adventurous.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to