SA-MP Forums Archive
Parse Error (php) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: Parse Error (php) (/showthread.php?tid=73407)



Parse Error (php) - Ashley - 14.04.2009

Hey, can anybody help me, I'm stuck and in a bit confuzzeled

I got a line of code here

Code:
echo ("<meta http-equiv=\"Refresh\" content=\"0; URL= $surl;"/>Thank You! You will be redirected");
and I'm wanting it to re-direct to a url i've specififed in a diff file, and I've put it there next to URL=$surl;

and I'm getting a parse error,

anybody know why?
:/


Re: Parse Error (php) - Killerkid - 14.04.2009

PHP Code:
echo ("<meta http-equiv=\"Refresh\" content=\"0; URL=$surl\">Thank You! You will be redirected"); 
or just:
PHP Code:
echo ('<meta http-equiv="Refresh" content="0; URL=' $surl '">Thank You! You will be redirected'); 



Re: Parse Error (php) - Ashley - 14.04.2009

Thatsfor that Killerkid. it works.

Topic can be closed now thanks