milesap Posted November 7, 2009 Share Posted November 7, 2009 Quick question, not sure if I'm doing this right. How can I get the value of a forms id element? Would it be $_POST['id']? <form id="test" . . .> </form> Thanks so much! Link to comment https://forums.phpfreaks.com/topic/180630-php-form-_post-question/ Share on other sites More sharing options...
oni-kun Posted November 7, 2009 Share Posted November 7, 2009 The ID of the form does not matter unless it's the one being submitted. You have to have "action=page.php", your parser or the own page and if you have a textarea for example.. <form action="form.php"> <textarea id="this"> </textarea> And then: </form> if (isset($_POST['this'])) { echo "$_POST['this']"; } Link to comment https://forums.phpfreaks.com/topic/180630-php-form-_post-question/#findComment-952954 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.