almightyegg Posted April 5, 2007 Share Posted April 5, 2007 I want to have a form like: <form action=blah method=post> <input type="text" name="id"> <input type="submit"> </form> and whatever number is entered into the id input will come up in a link like: rawr.php?id=$_POST['id'] but I don't know how to do it unless I have a page after it which does some checks and then forwards which would just be a waste of time as I'm sure it would be quite simple Link to comment https://forums.phpfreaks.com/topic/45702-solved-help-with-a-form/ Share on other sites More sharing options...
jitesh Posted April 5, 2007 Share Posted April 5, 2007 <form action=blah method=get> Link to comment https://forums.phpfreaks.com/topic/45702-solved-help-with-a-form/#findComment-222010 Share on other sites More sharing options...
almightyegg Posted April 5, 2007 Author Share Posted April 5, 2007 What would I put in the action then?? as that changes for whatever you enter into the input? Or do I put: action="blah.php?id=<? echo "$_POST['id']"; ?>" ??? Link to comment https://forums.phpfreaks.com/topic/45702-solved-help-with-a-form/#findComment-222012 Share on other sites More sharing options...
almightyegg Posted April 5, 2007 Author Share Posted April 5, 2007 Oh! I managed it <form action="societyhome.php?id=<? echo "$clu"; ?>" method="GET"> Society ID <input type="text" name="id"> <input type="submit"> <? $clu = $_GET['id']; ?> Thanks Link to comment https://forums.phpfreaks.com/topic/45702-solved-help-with-a-form/#findComment-222023 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.