var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: error in URL
I am quite new to php. I need to pass parameters to URL dynamically. I using following code to test and it is giving error.
echo "<a href=statepage.php?st=$ID>$name</a><br><hr>"
I know there is something wrong with the syntax but i checked this and did not find the problem.
Originally Posted by dineshthakur
- Are you going to tell us what the error is or should we guess?
- When do you get the error?
- What are the values of $ID and $name?
- What does the whole string print out?
I'm guessing that you left the semi colon of the end of the echo statement on purpose.