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 need some help to write an if statement. I have 2 checkboxes with same values but different field name I am wonder how do I write a if statement to compare the two checkbox if the value check are the same then I skip to another page otherwise I keep at the same page. Any help will be appreciated.

Checkbox values are stored as text, so if you're doing a simple check in a script, you could use:


If [table::checkbox1 = table::checkbox2]

Go to Layout [layoutname]

...

Else

... Do this ...

is this in reference to PHP? is this a FORM and you want to branch based upon field1=field2? if this is a FORM, do you want to branch after submit, or use an AJAX to display different parts of a page based on the match?

  • Author

yes it is in reference to a php.

What am I trying to do is to compare if the the value ckecked on checkbox are the same as the value checked on checkbox 2. If in case they are the same they should go to page1.php, And if in case they are not equal they should go to another page2.php

Any help will be appreciated.

thank you

  • 3 weeks later...

yes it is in reference to a php.

What am I trying to do is to compare if the the value ckecked on checkbox are the same as the value checked on checkbox 2. If in case they are the same they should go to page1.php, And if in case they are not equal they should go to another page2.php

Any help will be appreciated.

thank you

Create a third page and have your form submit to IT. Test for equal and branch as needed. Use 'header()' to redirect to the proper page. WARNING: do not introduce any whitespace into the page (that is not inside the "<?php ... ?>"). Or your header() will not work. PHP will think you have pushed the whitespace to the browser and issue a 'header already sent' message (or something like that!)

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.