• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help with passing a php variable to an onclick function

#1
[eluser]seanbbb[/eluser]
hi, I am trying to pass a php variable to <a >VenueID;
$output .= '<tr><td ><a href="#self" class="menulink"
>
<strong>' . $venue_details->Name . '</strong><br/>';
$output .= ' '.$venue_details->Address1 .', ';
$output .= $venue_details->Address2 .', ';
$output .= $venue_details->City .', ';
$output .=$venue_details->Postcode .', ';
$output .=$venue_details->PhoneNumber .', ';
$output .=$venue_details->URL .'</a></td></tr><hr/>';

#2
[eluser]seanbbb[/eluser]
onClick="changeDiv(\'&lt;?php echo $id;?&gt;\' )" >

#3
[eluser]seanbbb[/eluser]
I am trying to pass a php variable to onclick
but does not work.help pls !!!
onClick="changeDiv(\'&lt;?php echo $id;?&gt;\' )" >


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.