project-nz Posted May 15, 2009 Share Posted May 15, 2009 hi this is not much of a php question is there a way to send a string through form method = post i know that if you have something like this then itll send a text from a textbox. but what if i want to send a simple string such as $hi = "hello"; im stumped thanks in advance <form method = "post" action= 'Search.php' > <input type=text name="listname" /> <input type=submit value="Search"> </form> Link to comment https://forums.phpfreaks.com/topic/158246-solved-how-to-send-a-string-through-html-form-post/ Share on other sites More sharing options...
jackpf Posted May 15, 2009 Share Posted May 15, 2009 <input type="hidden" name="whatever" value="your string" /> Beware that they are easily modifiable by the user, so I wouldn't store anything important in hidden inputs... Link to comment https://forums.phpfreaks.com/topic/158246-solved-how-to-send-a-string-through-html-form-post/#findComment-834623 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.