Jump to content

Using the character " in html forms doesn't work?


pinacoladaxb

Recommended Posts

Here's some code I have for a form:

 

<form>

<INPUT TYPE="hidden" NAME="song" VALUE="<? echo $thissong; ?>">

<input type="submit" value="Submit">

</form>

 

The problem is when $thissong has the character " in it because all of the characters including it and after that are ignored. Let's say $thissong = a"b. Here's what the source code would look like for that line:

 

<INPUT TYPE="hidden" NAME="song" VALUE="a"b">

 

...so the "b is ignored. Is there a way of preventing this?

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.