Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

search from a list of values and defined output

Posted on 2003-12-08
7
184 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Suggested Solutions

Title # Comments Views Activity
css help 3 134
Form submit issue 11 86
Windows and other UI names - The Proper names for the Various elements! 1 106
Grunt script for Build Process 1 42
There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
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.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

840 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