Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

php in javascript 2

Status
Not open for further replies.

coderwasp

Programmer
Jan 10, 2007
24
US
why does this give me the error: Expected ')'

<body onload="showAddress(<?php echo $address;?>); return false">

when

<body onload="showAddress('the address'); return false">

works fine
 
><body onload="showAddress(<?php echo $address;?>); return false">
[tt]<body onload="showAddress([red]'[/red]<?php echo $address;?>[red]'[/red]); return false">[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top