Jump to content
dsmoore

php form question

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.

  • Like 1

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...