How TO

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
zzarzzur12
Forum Newbie
Posts: 3
Joined: Mon Mar 01, 2010 10:31 pm

How TO

Post by zzarzzur12 »

i wonder how do you have a page where there is 2 edit boxes and a user types something in and when they hit submit it takes them to a url with the same text they put in
example.

________________________ ________________________ Submit
Edit Box Name= "Fav Food" Edit Box Name= "Age" Submit Button


Fav Food = Pizza Age = 101

and then when hitting submit it takes you to a url like
http://www.test.com/favfood/pizza/age/101/

is that possible if so how please post the code and upload an example that works
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: How TO

Post by requinix »

You have to redirect the browser.

The form will submit to some PHP page like normal. In it, you redirect to the URL you want. In most cases the user won't even know the redirect happened.
zzarzzur12
Forum Newbie
Posts: 3
Joined: Mon Mar 01, 2010 10:31 pm

Re: How TO

Post by zzarzzur12 »

i took a look at that and i understand it better but do you know the code for retrieving something that was posted
Post Reply