Re: Php code in html buttons

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux