php lookup using a form

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
sp@rky
Forum Newbie
Posts: 2
Joined: Fri May 30, 2008 6:58 am

php lookup using a form

Post 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
LSJason
Forum Commoner
Posts: 45
Joined: Mon May 12, 2008 4:43 pm

Re: php lookup using a form

Post 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 :P
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: php lookup using a form

Post 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.
sp@rky
Forum Newbie
Posts: 2
Joined: Fri May 30, 2008 6:58 am

Re: php lookup using a form

Post 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.
LSJason
Forum Commoner
Posts: 45
Joined: Mon May 12, 2008 4:43 pm

Re: php lookup using a form

Post 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.
Post Reply