Mar 8, 2007 #1 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
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
Mar 8, 2007 1 #2 sleipnir214 Programmer May 6, 2002 15,350 US Probably the fact that the PHP-embedded line is missing the interior singlequotes. Want the best answers? Ask the best questions! TANSTAAFL! Upvote 0 Downvote
Probably the fact that the PHP-embedded line is missing the interior singlequotes. Want the best answers? Ask the best questions! TANSTAAFL!
Mar 8, 2007 1 #3 tsuji Technical User Jul 25, 2001 10,675 US ><body onload="showAddress(<?php echo $address;?>); return false"> [tt]<body onload="showAddress([red]'[/red]<?php echo $address;?>[red]'[/red]); return false">[/tt] Upvote 0 Downvote
><body onload="showAddress(<?php echo $address;?>); return false"> [tt]<body onload="showAddress([red]'[/red]<?php echo $address;?>[red]'[/red]); return false">[/tt]