September 24, 200817 yr I am working on a project that asks for a student to enter their ID before they can vote in the contest. They first thing that needs to be looked at is whether the ID exists as a record in the table. Then the user must have less than 11 total votes which is a field. I am trying to figure out where and how to put the logic to display a message if a. the student does not exist and b. if the student exists and has more than 10 entries already. I would like for the message to display on the original page that the submit button was pressed. If anyone has time or ideas on how I can complete this project, I would appreciate any help I can find. My structure is as follows: voting.php: This page has a form with a field for student ID and a button to go to verify_student.php. verify_student.php: This page has the code to do a find on the student table for the ID that was entered on the voting.php page. I am assuming this is the page that needs the If statement and then redirect back to voting.php with the error message. I am using FM API and trying to use FM Studio. Thanks gb
Create an account or sign in to comment