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? Link to comment https://forums.phpfreaks.com/topic/46071-solved-help-with-this-form/ 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"> Link to comment https://forums.phpfreaks.com/topic/46071-solved-help-with-this-form/#findComment-223874 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 Link to comment https://forums.phpfreaks.com/topic/46071-solved-help-with-this-form/#findComment-223875 Share on other sites More sharing options...
ballhogjoni Posted April 9, 2007 Author Share Posted April 9, 2007 Thanks, it worked. Link to comment https://forums.phpfreaks.com/topic/46071-solved-help-with-this-form/#findComment-225191 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.