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
php lookup using a form
Moderator: General Moderators
Re: php lookup using a form
If you shared the cipher, I'm sure we could help you out moresp@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
Re: php lookup using a form
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 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
Re: php lookup using a form
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.
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
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.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.