Jump to content

small syntax error (i think)


debuitls

Recommended Posts

your use of quotation marks is wrong, and its terminating the string prematurely

echo "You may book this"."<a href=\"#\" onclick=\"openbox('E-mail directly', 1)\">here</a>";

 

you want to escape your quotation marks that are inside the string. alternatively you can use single quotes, but I prefer to escape my doule quotes. its all personal preference really

echo "You may book this"."<a href=\"#\" onclick=\"openbox('E-mail directly', 1)\">here</a>";

 

You need to escape the quotations or it thinks you are ending/re-starting the echo (Also, you didn't put a semi-colon.

 

EDIT: Damn, mikesta707 beat me  ::)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.