• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Get dropdown id pass to iframe script

Get dropdown id pass to iframe script 10 years 7 months ago #29365

Hi I want to pass the id and value selected dropdown to the next script in an iframe on the next page.
As you can tell me what I can do thanks.

Sorry for my english

Dropdown
//<code>
// Prepare the empty array
 
 
$items = array();
// Prepare the database connection
$db = JFactory::getDbo();
$user = JFactory::getUser()->id;
// Keep this if you'd like a "Selecciona" option, otherwise comment or remove it
$items[] = "|Selecciona[c]";
 
// Run the SQL query and store it in $results
$db->setQuery("SELECT user_code, user_id FROM bg_user WHERE joomla_id = $user");
$results = $db->loadObjectList();
 
// Now, we need to convert the results into a readable RSForm! Pro format.
// The Items field will accept values in this format:
// value-to-be-stored|value-to-be-shown
// Eg. m|M-sized T-shirt
foreach ($results as $result) {
  $value = $result->user_code;
  $label = $result->user_id;
  $items[] = $value.'|'.$label;
}
 
// Multiple values are separated by new lines, so we need to do this now
$items = implode("\n", $items);
 
// Now we need to return the value to the field
return $items;
//</code>


Iframe script
<script type="text/javascript" src="https://payment.allopass.com/virtual/button.apu?ids=000000&amp;idd=000000&amp;user_id=[VALUE DROPDOWN]&amp;lang=en"></script>
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!