samedi 18 octobre 2014

PHP: Complicated String With Single and Double Quotes


Vote count:

0




I'm trying to pass GET variables inside the URL with a bit of html inside of my PHP but can't figure out the quotes situation. I need to embed two variables inside the URL. I have one in but don't know how to embed the other. Here is the string:



echo "<a href='?id=".($id-1)."' class='button'>PREVIOUS</a>";


and here is what I need to go inside



&City=$City


Thanks for the help



asked 32 secs ago







PHP: Complicated String With Single and Double Quotes

Aucun commentaire:

Enregistrer un commentaire