Gulsaes Posted November 6, 2008 Share Posted November 6, 2008 i'm a bit confused echo '<div class = "MyfavoritesAddto"> <form id="frmAddFavs" name="frmAddFavs" method="post" action="nothing.php"> <input type="hidden" name="fav" value="add"> <input class="AddtoFavsButton" type="submit" name="button" id="AddFavs" value="Add Favorite" /> </form> </div>'; When the button clicks it puts the information in the URL ie http://site/dir/test.php?country=US&fav=add&button=Add+Favorite and returns to test.php instead of nothing.php any ideas Quote Link to comment https://forums.phpfreaks.com/topic/131612-post-form-shows-in-url/ Share on other sites More sharing options...
Gulsaes Posted November 6, 2008 Author Share Posted November 6, 2008 Nevermind, I had a Form inside a form Quote Link to comment https://forums.phpfreaks.com/topic/131612-post-form-shows-in-url/#findComment-683550 Share on other sites More sharing options...
predator12341 Posted November 6, 2008 Share Posted November 6, 2008 have you got a form on the same page with the same name/id or is this form inside another form in you page Quote Link to comment https://forums.phpfreaks.com/topic/131612-post-form-shows-in-url/#findComment-683551 Share on other sites More sharing options...
Adam Posted November 6, 2008 Share Posted November 6, 2008 Have you got another form tag opened but not closed anywhere on the page? Can't imagine it would be that but, worth a look! EDIT: ignore the last bit i said! Adam Quote Link to comment https://forums.phpfreaks.com/topic/131612-post-form-shows-in-url/#findComment-683552 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.