POST method and space problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
powerPT
Forum Newbie
Posts: 14
Joined: Tue Apr 04, 2006 2:25 pm
Location: Portugal

POST method and space problem

Post by powerPT »

Hi guys! First, congratulations from Portugal, this website and forum are amazing! Great articles/tutorials!

Well, with this image is more easy to understand:

Image

When I click on that button, the variable $valor assumes the value "LALA". I wish that this variable get the full value, in this case "LALA lafjsa..." (no, this is not any language :lol: ). The problem is in space between words :?

Any solution?

Thanks in advance!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

place quotes around the attribute values like so

Code: Select all

<option value="asdf 1234">some text</option>
powerPT
Forum Newbie
Posts: 14
Joined: Tue Apr 04, 2006 2:25 pm
Location: Portugal

Post by powerPT »

OMG, so simple! :oops:

Thanks!
Post Reply