When my form fields data consists of more than one string, $_POST only picks up the first string. e.g. form field name=street form filed entry = President Kennedy $Street = $_POST[street]; Result: $Street contains "President" Am I doing something wrong? How do I get the full field content? Thanks Michael
Sorry, I just found out that is not the problem. The problem seems to be in the following statement/ Street:<input type=\"text\" readonly name=\"estreet\" size=\"25\" MaxLength=30 value=$Street> $Street does contain the full field entry after using $_$POST but what is displayed in the new form (above statement) only shows the first string of $Street content. Thanks Michael
Use quotes around $Street. <input type=\"text\" readonly name=\"estreet\" size=\"25\" MaxLength=30 value=\"$Street\"> PHP:
Or to avoid \ simply use ' (single quote) instead of double like :<input type='text' readonly name='estreet' size='25' MaxLength=30 value='$Street'>
Oh and another hint, when getting data from arrays use: $_POST['street'] not $_POST[street]. 4-6x faster and reduces the risk for errors. e.g. If I had earlier done: define('street', 'blah'); then it would retrieve $_POST['blah'] and not $_POST['street']. - Dan