Page 1 of 1
php lookup using a form
Posted: Fri May 30, 2008 7:04 am
by sp@rky
Hi, hope somebody can assist.
I'm looking do implement the following on my site but can't seem to locate some existing code that I could amend.
Basically I want people to either enter a serial number and it will serve an answer back, the format is always the same
E.g 2X1234 would equate to 2=1982 F=code 1234=number
I guess some sort of lookup would surfice as long as the result is presented to screen.
Any help much appreciated
Thanks,
Mark
Re: php lookup using a form
Posted: Fri May 30, 2008 9:32 am
by LSJason
sp@rky wrote:Hi, hope somebody can assist.
I'm looking do implement the following on my site but can't seem to locate some existing code that I could amend.
Basically I want people to either enter a serial number and it will serve an answer back, the format is always the same
E.g 2X1234 would equate to 2=1982 F=code 1234=number
I guess some sort of lookup would surfice as long as the result is presented to screen.
Any help much appreciated
Thanks,
Mark
If you shared the cipher, I'm sure we could help you out more

Re: php lookup using a form
Posted: Fri May 30, 2008 4:31 pm
by califdon
sp@rky wrote:Hi, hope somebody can assist.
I'm looking do implement the following on my site but can't seem to locate some existing code that I could amend.
Basically I want people to either enter a serial number and it will serve an answer back, the format is always the same
E.g 2X1234 would equate to 2=1982 F=code 1234=number
I guess some sort of lookup would surfice as long as the result is presented to screen.
Any help much appreciated
Thanks,
Mark
If you want help in learning PHP, I recommend
http://w3schools.com/php/default.asp. Your question is so ambiguous that I doubt that anyone can give you a direct answer.
Re: php lookup using a form
Posted: Mon Jun 02, 2008 2:27 am
by sp@rky
Not looking to learn at the moment, just require some brief guidance.
Basically, if I had some type of entry boxes on one of my pages that people could enter a serial number into that would lookup and serve the results
E.g.
First box - please enter first digit - user enters '3' this would result in the served lookup to equal '1983'
...and second box until the full serial is served.
Re: php lookup using a form
Posted: Mon Jun 02, 2008 8:24 am
by LSJason
sp@rky wrote:Not looking to learn at the moment, just require some brief guidance.
Basically, if I had some type of entry boxes on one of my pages that people could enter a serial number into that would lookup and serve the results
E.g.
First box - please enter first digit - user enters '3' this would result in the served lookup to equal '1983'
...and second box until the full serial is served.
When the user enters '4', would the lookup be equal to '1984'? If yes, then you can just add 1980 to the entered data. Otherwise, you will need a database and your own code to look up the id.