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:[EMAIL PROTECTED]
Sent: Monday, February 24, 2003 12:15 AM
To: Sunfire
Cc: [EMAIL PROTECTED]
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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to