Click to See Complete Forum and Search --> : quotes problem


davser
06-14-2007, 04:52 PM
PHP Code:
$input3->setAttribute("value","\$_SERVER['REQUEST_URI']");


I want to write the value in the input without the quotes "", so I can really get the address.

With this code the dom will generate
<input ... value="$SERVER[REQUEST_URI']" ...>

How can I do that????

I dont want...
<input ... value="http://..." ...>

I want
<input ... value=$SERVER[REQUEST_URI'] ...>

andre4s_y
06-14-2007, 10:33 PM
davser....
why you do not want to use double quote??
i think the double quote make your html tag valid....

you can eliminate them with regex.
Andre