That's right, but since the op's headline is "Calling a javascript function from a php echo" I think he wants to do something more elaborated then just calling this little function.
By the way, I don't think, that the php is the problem here.
User Profile
Collapse
-
Hi,
you have to get the reviewid from either the $_GET- or the $_REQUEST-Array:
Code:$reviewid = intval($_REQUEST['reviewid'];
Now you have to use this value in your SQL-Query by adding something like
Code:AND reviews.id = $reviewid
Leave a comment:
-
Re: Calling a javascript function from a php echo
Hi,
I have tried a your code and added the alertme function:
Code:<head> <script type="text/javascript"> alertme = function(){ alert("me"); } </script> </head> <?php echo '<tr> <td> <input title="Add New Link"
Leave a comment:
No activity results to display
Show More
Leave a comment: