--- Wagner Garcia Campagner <[EMAIL PROTECTED]> wrote: > Hi, > > I have a varilable: > > $var = 'asdf asdf asdf'; #using blank spaces > > Then i send it to another script like this: > > <INPUT TYPE=hidden NAME=var VALUE=$var> > > The problem is when i get it back the value became: > > $var = asdf > > It stops in the first blank space.... is there a way for me to recover all > the variable?? > > Thanks in advance, > Wagner Garcia Campagner
Wagner, First, I would recommend that you take a look at XHTML. This will solve many problems. You can read about it at http://www.w3.org/TR/xhtml1/. Second, quote your attribute values. This will solve your immediate problem. <input type="hidden" name="var" value="$var" /> Check out HTML Tidy. This will clean up a lot of your HTML. You can download it at http://www.w3.org/People/Raggett/tidy/#download. You can read the documentation at http://www.w3.org/People/Raggett/tidy/. You can also use Tidy to create valid HTML for you. Cheers, Curtis "Ovid" Poe ===== Senior Programmer Onsite! Technology (http://www.onsitetech.com/) "Ovid" on http://www.perlmonks.org/ __________________________________________________ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]