Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.