Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- quotations problem with echo("") command
November 15, 2004, 10:32 pm
rate this thread
What i'm trying to do is exactly like the weather channell site when
you click in the zip code box the text dissapears and you are free to
type your zip.
I can make it work by using this command:
but i want to generate the string with php by using the echo("write
something here"); command.
Obviously the problem here is the double_quotes i need are screwing up
the command.Have tried using special characters and adding slashes.
which both work to a degree. The page doesn't bomb but the onfocus
still doesn't function. wtf how do i make it work??
time is 6:31pm Central
Re: quotations problem with echo("") command
echo 'onfocus="this.value=\'write something here\'"';
echo "onfocus=\"this.value='write something here'\"";
$double_quote = '"';
$single_quote = "'";
echo 'onfocus=', $double_quote, 'this.value=', $single_quote,
'write something here', $single_quote, $double_quote;
Mail sent to my "From:" address is publicly readable at http://www.dodgeit.com /
== ** ## !! !! ## ** ==
bypass the spam filter. I will answer all pertinent mails from a valid address.