Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5896 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

This topic is 5896 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.