PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
dakkonz
Forum Commoner
Posts: 69 Joined: Sat Dec 27, 2003 2:55 am
Location: Asia
Post
by dakkonz » Sun May 23, 2004 11:37 pm
Code: Select all
<?php
echo "<td><a href="mailto:xxx@xxxxx.com" onClick="include_once('trial.php');" ><b>Send a Comment</b></a></td>";
?>
can anyone tell me wat is wrong?? i want to update a field in the database once ppl click on this link....
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Mon May 24, 2004 1:23 am
the code you posted will attempt to run a javascript function called include_once. It will not run the php script trial.php.