Re: Post W/o button

From: Date: Sun, 03 Dec 2000 15:05:48 +0000
Subject: Re: Post W/o button
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-28435@lists.php.net to get a copy of this message
Use JavaScript to create a form like this: <FORM NAME=taxes ACTION="http://www.yourphpform.php3" METHOD="POST"><INPUT TYPE="hidden" NAME="INDX" VALUE="0204"><a href="javascript:document.taxes.submit();"><font face="arial, helvetica" size="1" color="#FF0000"><b><center>PROPERTY<br>TAXES</center></b></font></a></FORM> I am using this to pass a value to a php page that then generates property tax info for a town. In my example above "PROPERTY TAXES" looks like a hyperlink but it is actually the submit button for the form. I have 5 different values (officials, census data, etc.) that I place into separate JavaScript forms in a HTML table. Fred Steinkopf ----- Original Message ----- From: "Toby Butzon" <php-lists@imawebdesigner.com> To: "Mike P" <mpeloso@ampsoft.com>; "PHP List" <php-general@lists.php.net> Sent: Sunday, December 03, 2000 9:29 AM Subject: Re: [PHP] Post W/o button > Are you talking about sending variables like this? > > http://my.domain.com/dir/to/script.php?var1=value&var2=anotherone&var3=etc.e > tc.etc. > > That's how you pass variables to a script by link. If this isn't what you > were looking for, let me know. > > Toby Butzon > [ criticism spurs improvement ] > > > ----- Original Message ----- > From: "Mike P" <mpeloso@ampsoft.com> > To: <php-general@lists.php.net> > Sent: Sunday, December 03, 2000 9:22 AM > Subject: [PHP] Post W/o button > > > : I know this is more of an html question but....I want to send a variable > to > : a phpscript just by clicking on a hyperlink.I have Hyperlinks numbered > from > : 1-17 with values 1-17 and I just want to click on it to send the value to > a > : php page automattically w/o a submit button > : Thanks > : mpeloso@princeton.edu > : > : > : > : > : -- > : 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 > : > : > > > -- > 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 (#28435) next »