This is a discussion on "Open different pages depending on value entered into input box" within the PHP Forum section. This forum, and the thread "Open different pages depending on value entered into input box are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Open different pages depending on value entered into input box
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Open different pages depending on value entered into input box
Im hoping somebody can point me in the right direction with this one !
Im have created a page for my companies website that is going to have an input box on, in this box the customer will enter there customer number. I want it so if the customer number is recognized then the customer is directed to one page but if its not recognized then they are directed to a different page.. I know this is possible but I dont know how to explain it or what its called so I cant just google it ! Any help much appreciated ! |
|
|
|
|||
|
Re: Open different pages depending on value entered into input box
Very simple m8.
You action the form to a specific file, example: goquery.php And this is your goquery.php Quote:
|
|
|||
|
Re: Open different pages depending on value entered into input box
Thanks,
Im not too hot on PHP but i'll have a good go at getting it to work, im sure i'll be back for a few tips though thx again Ian |
|
|||
|
Re: Open different pages depending on value entered into input box
no problem, m8.
if ur good at IE stupid bugs. check html forum and gimme a BIG hand. |
|
|||
|
Re: Open different pages depending on value entered into input box
Sorry, im not a web designer m8, im strictly a drag and dropper lol
If it was a technical issue then maybe I could of helped |
|
|||
|
Re: Open different pages depending on value entered into input box
Presumably there are only two page options, one for known customers and one for others?
Assuming customer numbers kept on a database and form using method='post'. Your php code needs to do the following: The code must start with; ob_start(); This buffers the header output until you have made up your mind what you want to do.
And finally:
|
![]() |
| Tags |
| open, different, pages, depending, value, entered, input, box |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Repeat data entered in a text box... and maybe change it? | simbo1231 | JavaScript Forum | 4 | Dec 2nd, 2007 10:24 |
| IF value entered is nothing? | PicoDeath | PHP Forum | 16 | Aug 2nd, 2007 17:19 |
| How to customize content depending on URL? | matthewpage | Classic ASP | 1 | Nov 13th, 2006 04:50 |
| Open a specific page dependent on what is entered into a criteria box??? | IanW | Web Page Design | 2 | Sep 15th, 2006 12:39 |
| Resizing a div depending on another div size | AdRock | Web Page Design | 2 | Sep 3rd, 2006 14:26 |