Jump to content


Photo

Popup script inside php echo?


  • Please log in to reply
2 replies to this topic

#1 Andrew R

Andrew R
  • Members
  • PipPipPip
  • Advanced Member
  • 158 posts
  • LocationIreland

Posted 10 October 2006 - 03:09 PM

How I get the follow popup script into an echo inside php? 

<a href="#" onClick="MM_openBrWindow('info.php?flight_id=<?php echo $row_flights['flight_id']; ?>&adults=<? echo $adults ?>&children=<? echo $children ?>','','scrollbars=yes,width=442,height=300')">book</a>
Into

echo ' ';


Cheers


#2 shiny_spoon

shiny_spoon
  • Members
  • PipPip
  • Member
  • 26 posts
  • LocationCanada

Posted 10 October 2006 - 03:14 PM

<?php
echo '<a href="#" onClick="MM_openBrWindow(\'info.php?flight_id='.$row_flights['flight_id'].'&adults='.$adults.'&children='.$children.'\',\'\',\'scrollbars=yes,width=442,height=300\')">book</a>';
?>


#3 Andrew R

Andrew R
  • Members
  • PipPipPip
  • Advanced Member
  • 158 posts
  • LocationIreland

Posted 10 October 2006 - 03:22 PM

Cheers shiny_spoon  ;D




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users