SkyRanger Posted April 8, 2012 Share Posted April 8, 2012 Could somebody please have a look at this and see if you see a problem: Error Parse error: syntax error, unexpected ',', expecting '&' or T_VARIABLE in request.php on line 32 Code starting on line 32 only comments above this function fhrsam_requests(songID, samhost, samport) { var path = "http://localhost/"; reqwin = window.open(path+"request.php?songID="+songID+'&samport='+samport+'&samhost='+samhost, "_AR_request", "location=no,status=no,menubar=no,scrollbars=yes,resizeable=yes,height=400,width=550"); reqwin.focus(); }; Quote Link to comment https://forums.phpfreaks.com/topic/260539-parse-error/ Share on other sites More sharing options...
trq Posted April 8, 2012 Share Posted April 8, 2012 The code you have posted isn't even php. Quote Link to comment https://forums.phpfreaks.com/topic/260539-parse-error/#findComment-1335305 Share on other sites More sharing options...
SkyRanger Posted April 8, 2012 Author Share Posted April 8, 2012 Hi thorpe, This code is in with the rest of my php code surrounded by the <?php ?> tags. Quote Link to comment https://forums.phpfreaks.com/topic/260539-parse-error/#findComment-1335307 Share on other sites More sharing options...
trq Posted April 8, 2012 Share Posted April 8, 2012 Awesome. It's not php, hence your error. Quote Link to comment https://forums.phpfreaks.com/topic/260539-parse-error/#findComment-1335308 Share on other sites More sharing options...
SkyRanger Posted April 8, 2012 Author Share Posted April 8, 2012 Oh thats not good then. And the author of the script is lost some where in cyber space. Thanks Thorpe. Quote Link to comment https://forums.phpfreaks.com/topic/260539-parse-error/#findComment-1335311 Share on other sites More sharing options...
trq Posted April 8, 2012 Share Posted April 8, 2012 It's JavaScript, it should not be between <?php ?> tags. Quote Link to comment https://forums.phpfreaks.com/topic/260539-parse-error/#findComment-1335312 Share on other sites More sharing options...
SkyRanger Posted April 8, 2012 Author Share Posted April 8, 2012 Thanks thorpe, fixed out 1/3 of my problem. Quote Link to comment https://forums.phpfreaks.com/topic/260539-parse-error/#findComment-1335362 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.