Jump to content

php form question


dsmoore

Recommended Posts

What I have is several html files with a naming convention such that a user id number is the file name and then the .html extension, so if a user id is 10934, then the file that the user needs is 10934.html. What I want to do is have a php script such that the user will input their number into a text input box, and then when they press submit, the appropriatly named html file will display or an error html file will display. Does anybody have an idea about how to implement this? I am doing this so that my students can view their grades, so I cannot just have a list of links. Thank you for any help.

Link to comment
Share on other sites

#1 Don't create an html file for each user...#2 Use php with mysql to do this.#3 How you do this is you make a table in the database with all the info you want to display on a page. Then create one php file that will grab all that info based on which user is trying to access it. If you don't know how to do that I can add more detail.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...