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 help on passing variables.

How do i get a variable into a hidden field so that when user creates new record, the variable poupulates the field. I am passing it in the URL '/name=mike'. How do i place the into a new field on another table in my db?

-dbCustomers;&name=mike passed to a new table & new field ...orders::name??

thanks

Those variables are stored in PHP's Predefined variables. http://www.php.net/manual/en/reserved.variables.php

variables passed through the URL are specifically in the $_GET and $_REQUEST associative arrays.

will set the value to Mike and add 'name' => 'Mike' to the $_REQUEST and $_GET or $_POST arrays of the page the form is submitted to.

Be sure to read the FAQ about register_globals, which is turned off by default in current installations.

http://www.php.net/manual/en/faq.using.php#faq.register-globals

I'll also add that instead of passing variables around using hidden fields you could session them or session an object containing them and grab them when ever you want.

http://www.php.net/manual/en/ref.session.php

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.