medaswho Posted March 23, 2009 Share Posted March 23, 2009 i am trying to build a forum. i would like for the main page to do some kind of loop in which it would build a list of posting titles exampleecho"<a href='whatever.php'>".$title."</a>"; then to submit the form without a button, just send the value of $title[/] in a post to the next part of the app? can anyone help? Link to comment https://forums.phpfreaks.com/topic/150719-does-anybody-know-how-to-auto-submit-a-form-in-php-without-javascript/ Share on other sites More sharing options...
Zhadus Posted March 23, 2009 Share Posted March 23, 2009 You will need to pass it through the address bar and use $_GET to draw it into the page. <?php for ($x = 0; $x < 10; $x++) echo "<a href='whatever.php?title=$title[$x]'>$title[$x]</a>"; ?> Then on the whatever.php page, you can use: <?php $title = $_GET['title']; echo $title; // Current title. ?> Link to comment https://forums.phpfreaks.com/topic/150719-does-anybody-know-how-to-auto-submit-a-form-in-php-without-javascript/#findComment-791795 Share on other sites More sharing options...
medaswho Posted March 23, 2009 Author Share Posted March 23, 2009 Awesome!! i will try it! Link to comment https://forums.phpfreaks.com/topic/150719-does-anybody-know-how-to-auto-submit-a-form-in-php-without-javascript/#findComment-791826 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.