Solved

search from a list of values and defined output

Posted on 2003-12-08
7
185 Views
Last Modified: 2010-04-06
Hi there,
I've created a database containing student file information (ID, missing items) and would like students to search by ID rather than calling.

I'd prefare if the table is be hidden and all what the page has is a text box (to enter ID) and a search botton.

Missing items are as follow (copy of passport, copy of Highschool cert, and a photograph)

desired output messages are as follow
1. Yes you do have a complete file, Thank You
2. You do have a file, but it's missing (one or more of the missing items described above)
3. Sorry, you don't have a file.  click here to download the form

thanks
0
Comment
Question by:omanca
  • 3
  • 2
7 Comments
 
LVL 3

Expert Comment

by:red010knight
ID: 9904708
What interface coding are you using? PHP? Perl? other?..
What database are you using? MySQL? ORacle? other?..

Without those it'll be hard for anyone to really tell you the code, but the basic steps you are looking for is:
1>Have a type in page for the ID
2>The page is reloaded and if ID has been entered it
  A>select data from table where studentID ='s entered ID
  B> Display the messages

You may also consider adding the option of - Sorry that ID was not recognized, you entered ______ ID if that is correct then click here to download the form.

Or something like that.
Enjoy
Red010Knight
0
 
LVL 2

Author Comment

by:omanca
ID: 9909792
there is still no interface.  I know HTML only.
database is MS Access, and all data stored in one table.
(number for ID, and check boxes for missing items)

I have no experience in programming.
0
 
LVL 3

Accepted Solution

by:
red010knight earned 500 total points
ID: 9909941
HTML alone cannot do what you ask, and MS Access is not the best platform for what you want to do. Not in a web enviornment at any rate. Or if it does do this, I'm ignorant of the fact as Microsoft is windows based and for site stability is the wrong platform to use to serve webpages. You may want to move your question to the group under MS Access...

There might be a way to jerryrig something you are looking to do, with what I know but as it stands I do not have the time for it as I barely have an hour a day to give to EE. And with your lack of programming experience, there would be more questions than I can answer... but I'll try to lay the ground work for anyone that attempts to follow in my footsteps on this question:
1>Convert your access database to a comma seperated file
2>Have a user verification page
3>Have a id input field
4>Have a program language read in the file and parse out the data into a two dimensional array:
  a>the first dimension is the ID
  b>the second is the list of missing items
5>Have the language print out only the array element that is missing

This has to be done with a server side script otherwise the data file could be accessed by anyone that is web literate enough to understand a page's source code which is a good portion of the internet community today, especially among those wanting to find info they do not know.

Hope this gets you towards a solution and my apologies for not helping further.
Red010Knight
0
 
LVL 3

Expert Comment

by:red010knight
ID: 9909945
PS this is where you will need to go if you elect to seek help along the MS Access route:

http://www.experts-exchange.com/Databases/MS_Access/

Good Luck,
Red010Knight
0
 
LVL 2

Author Comment

by:omanca
ID: 9976607
I found a java script that will do the job.

Thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question