Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to get php to read in a string of words from a dropdown box?
    text
    copied!<p>Thank you so much for being so helpful. Owe you all a thank you. I will be asking more questions in the future. Someone has solved the problem by giving me this code: echo "" . strval($row['style']) . "" . "<br />"; </p> <p>and it worked beautifully!!!!!!!!! You rock!</p> <p>I am sorry, I don't know how to post follow up questions, so I keep posting each question as a new question. I've never joined any forum before, so don't know how to follow a thread :( Sorry</p> <p>I previously asked a question, but didn't post my code, so many kind people (thank you so much) who respanded couldn't help me out. </p> <p>So I'll post my partial code below.</p> "; echo "Select an item<br />"; echo ""; } while($row = mysql_fetch_array($result)) { echo "$row[style] $row[color]<br />"; } mysql_close($con); echo ""; echo "<br /><br />"; echo "Enter your 4 digit postcode<br />"; echo ""; echo "<br /><br />"; echo "Enter quantity<br />"; echo ""; echo "<br /><br />"; echo ""; echo ""; ?> <p>Then to process form, I use $_POST['item'] to find out which item was selected, I get the first word, the rest of the words are missing. </p> <p>For example, if the dropdown box was populated with the follwoing:</p> <p>Dressmaker mannequin size 12 Mannequin torso PH-9 in skin color ...</p> <p>if item selected was "Dressmaker manenquin size 12", $_POST['item'] gives me Dressmaker, the rests are missing.</p> <p>I spent whole last night and today searching, but have made no progress, please help :(</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload