ballhogjoni Posted April 7, 2007 Share Posted April 7, 2007 For some reason my code is only posting the first portion of the value? Example: <input type="hidden" value=<?php echo $_POST['STREET1']; ?> name="STREET1"> is only storing "101" instead of "101 test way". Can anyone help with this one? Quote Link to comment Share on other sites More sharing options...
Psycho Posted April 8, 2007 Share Posted April 8, 2007 That's because you are not enclosing the value within quotes. When HTML is parsing parameters within a tag if the value is not enclosed in quotes it interprets the first space as being the end of the value. Try this: <input type="hidden" value="<?=$_POST['STREET1']?>" name="STREET1"> Quote Link to comment Share on other sites More sharing options...
Zaid Posted April 8, 2007 Share Posted April 8, 2007 That's because you are not enclosing the value within quotes. When HTML is parsing parameters within a tag if the value is not enclosed in quotes it interprets the first space as being the end of the value. Try this: <input type="hidden" value="<?=$_POST['STREET1']?>" name="STREET1"> u got some sharp eyes man Quote Link to comment Share on other sites More sharing options...
ballhogjoni Posted April 9, 2007 Author Share Posted April 9, 2007 Thanks, it worked. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.