Re: Php code in html buttons

From: Date: Wed, 11 Jul 2007 21:32:39 +0000
Subject: Re: Php code in html buttons
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-258650@lists.php.net to get a copy of this message
On Tue, July 10, 2007 5:59 pm, k w wrote: > I'm trying to make a button execute some php code when the button is > clicked. I'm not sure if it is the button i'm coding wrong or the php > code. > Here is the code I am using. > > <?php > echo "<button action='<?php > mysqli_query($connect,$query)?>'Click</button>"; > ?> Actually, since I've answered this one the same way quite a few times, I decided to just put it in my blog: http://richardlynch.blogspot.com/2007/07/php-in-html.html Now if I can just remember to use that link the next time instead of typing it all again... -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#258650) next »