RE: [PHP] <button> and </button>
| From: | Larry Brown | Date: | Mon, 24 Feb 2003 05:24:34 +0000 |
| Subject: | RE: [PHP] <button> and </button> | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-136823@lists.php.net to get a copy of this message | ||
The onClick should be onClick=window.location("newpage.php") and this has
nothing to do with php.
Larry S. Brown
Dimension Networks, Inc.
(727) 723-8388
-----Original Message-----
From: Leif K-Brooks [mailto:eurleif@buyer-brokerage.com]
Sent: Monday, February 24, 2003 12:15 AM
To: Sunfire
Cc: php-general@lists.php.net
Subject: Re: [PHP] <button> and </button>
This has nothing to do with PHP, but a button is used to submit a form.
You'll have to create a form with its action set to the page to direct to.
Sunfire wrote:
>hi..
>
>i have a button on a web page that is supposted to go to another web page
>when either clicked with a mouse or when someone presses enter on it.. :
><button onclick="postprayer.htm" onkeypress="postprayer.htm">
>post a prayer
></button>
>that is my basic code for the button... my problem is the fact that when
you
>click the button or hit enter on it all it does is refresh the page if it
>even does that. how would i actually make this button load another page
>using php??
>
>tnx
>
>
>
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.443 / Virus Database: 248 - Release Date: 1/11/2003
>
>
>
>
--
The above message is encrypted with double rot13 encoding. Any unauthorized
attempt to decrypt it will be prosecuted to the full extent of the law.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php