stumpy
02-28-2003, 05:10 AM
i want to be able to redirect visitors to two different pages on my site, depending on the text they input - probobly best if I explain in a little detail ;o)
They enter a postcode on a page, click a submit button, and if the first 4 letters match a predefined string, they are sent to a registration page (register.htm) otherwise the postcode they entered is added to a postcode.csv file, and they are re-directed to another page (notyet.htm)
ie the cose i want is PO13
they enter PO13 4DB, click the button and are sent to register.htm
or
they enter say NE12 5TF, click the submit button and the NE12 is added the the end of the postcode.csv file, and they are sent to the notyet.htm page.
Any help will be greatly appreciated, as you've guessed I am new to coding.
PS I can not run PHP or ASP on my site, it's a basic hosting site only.
Cheers
Stumpy.
They enter a postcode on a page, click a submit button, and if the first 4 letters match a predefined string, they are sent to a registration page (register.htm) otherwise the postcode they entered is added to a postcode.csv file, and they are re-directed to another page (notyet.htm)
ie the cose i want is PO13
they enter PO13 4DB, click the button and are sent to register.htm
or
they enter say NE12 5TF, click the submit button and the NE12 is added the the end of the postcode.csv file, and they are sent to the notyet.htm page.
Any help will be greatly appreciated, as you've guessed I am new to coding.
PS I can not run PHP or ASP on my site, it's a basic hosting site only.
Cheers
Stumpy.