Jump to content

[SOLVED] sending varibles


alienmojo

Recommended Posts

[quote author=thorpe link=topic=121437.msg499349#msg499349 date=1168216952]
[quote]Or, if you prefer to use double quoted HTML attributes like the XHTML specs say[/quote]

Funnily enough, there is nothing in the specs that says you must use double quotes. I thought so for a long time aswell.
[/quote]
http://www.w3.org/TR/xhtml1/#h-4.4

I looked it up just the other day. I said XHTML. It might not be in HTML, but w3 urges to use XHTML now.
$accountnum=$row['accountnum'];
echo '<center>';
echo "<a href=\"descrip.php?accountnum=$accountnum\">";

As with Perl, I'm pretty sure php does variable interpolation within double quotes and remains verbatim with single quotes. In this case it would be just as easy to stay with double quotes on your last statement and escape the inner html qoutes. Your $accountnum will still be replaced.

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.