archbeta Posted March 29, 2007 Share Posted March 29, 2007 Is this possible? Im using POST method, Can i give, say a textfield named "textfieldname" a value using url like http://localhost/site/file.php?textfieldname="myvalue" Link to comment https://forums.phpfreaks.com/topic/44815-post-method-textfield-and-url/ Share on other sites More sharing options...
redbullmarky Posted March 29, 2007 Share Posted March 29, 2007 moved from @PHPFreaks Questions, Comments & Suggestions. Please check where you're posting in future. Link to comment https://forums.phpfreaks.com/topic/44815-post-method-textfield-and-url/#findComment-217651 Share on other sites More sharing options...
boo_lolly Posted March 29, 2007 Share Posted March 29, 2007 you'd be using the $_GET method, not the post method: if(isset($_GET['textfieldname'])){ display($_GET['textfieldname']); }else{ display($default_text); } this is just an example. pseudo-code. Link to comment https://forums.phpfreaks.com/topic/44815-post-method-textfield-and-url/#findComment-217682 Share on other sites More sharing options...
The Little Guy Posted March 29, 2007 Share Posted March 29, 2007 $_GET[] - Takes from the URL $_POST[] - Takes from a form, (It may take from a link too) Link to comment https://forums.phpfreaks.com/topic/44815-post-method-textfield-and-url/#findComment-217794 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.