dan1956 Posted August 24, 2009 Share Posted August 24, 2009 Greetings to All, New guy here looking for a little assistance. Please visit my website (http://www.justvideod.net) and if you look in the top right corner you will see what I'm trying to do. I want to add a single input box with a submit button. When a visitor enters a number in the input box, I want to append that number to my URL and redirect them to the appropriate page. For example, www.justvideod.net/branded/497710. I want the visitor to be able to enter their tour MLS number (497710 in this example) and after pressing Submit be redirected to that page. Any help or suggestions on how to do this is greatly appreciated! Quote Link to comment Share on other sites More sharing options...
marlonbtx Posted August 24, 2009 Share Posted August 24, 2009 thats easy . you just to put the name tag to your imput like this <form ...> <input name="number" type="text" /> <input type="submit" value="submit" /> </form> then with your php code catch some action you can put it on your form action an with a if check the action then get the variable name with post or get whatever ... do the next step Quote Link to comment Share on other sites More sharing options...
dan1956 Posted August 24, 2009 Author Share Posted August 24, 2009 Thanks for the quick reply but I'm not that technical...I added some simple code to my page: <form method='get' action='http://www.justvideod.net/branded/'> <input type='hidden' name='' value=''> <input type='text' name='id'> <input type='submit'> </form> This almost works! LOL! But I can't get rid of the ?id= The resulting url is www.justvideod.net/branded/?id=497710 and I just want www.justvideod.net/branded/497710 Quote Link to comment 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.