Forum Moderators: coopster

Message Too Old, No Replies

Blog post preview window

launching separate java pop-up

         

jason_m

7:33 pm on Aug 11, 2010 (gmt 0)

10+ Year Member



Okay, this question is a bit nested.

I have a main entry window in which I type my post. I would like to institute a preview window for myself rather than posting and editing as I have been doing.

With this I have put in a pop up mechanism through which I pass variables as nested in this pop-up ulr eg (mysite.com/preview.php?title=My%20Title&Date=20100801...etc)

my issue is the following:
The body of my message contains html with nested links and images as well as some other inner workings.

I would like to use javascript to convert this to a legible string for php (as php will be $_GET'ting the variables from the URL). I know this must be possible as this is not too uncommon a desire.

Any pointers would be greatly appreciated.

if this belongs in a different forum i apologize, but i thought it is equal php as it is javascript.


thanks

jason_m

8:56 pm on Aug 11, 2010 (gmt 0)

10+ Year Member



solved.

javascript:
escape(encodeURIComponent(body));

php:
urldecode($body);