Hi, I need a php script that redirects you to the right url based on a single text field's input. The purpose is for customers who have been given a certain affiliate's id to enter it so they are redirected to the affiliate's internal page. Example... affiliate "john" gives a customer a business card with his affiliate code "john" on it. The customer goes to the website domain.com where this text input field exists. He types in "john" and is redirected to domain.com/product123/item.html. There will be hundreds to thousands of affiliate codes and urls. Probably reside in a mysql db? If a non-existent affiliate id is entered then the customer must be alerted of this so they can try again.
Thank you.