Re: Post without submit?

From: Date: Thu, 25 Jan 2001 23:36:30 +0000
Subject: Re: Post without submit?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-36728@lists.php.net to get a copy of this message
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" <rscrawford@mossroot.com> To: "Chris" <chrisderson@ameritech.net>; "PHP" <php-general@lists.php.net> 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: 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 >

« previous php.general (#36728) next »