• 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: Form Results as a Variable in form proccess script

Form Results as a Variable in form proccess script 16 years 10 months ago #4932

Hi,
I want to use the results from a form in the form proccess script. For example, if the user submit's their name I want to be able to use their name as a variable $name in the post script. I am not sure if this can be done but can imagine it is quite simple. I have tried looking at the other scripts on here and in the manual but can't seem to adapt anything to what I want.
Any assistance would be greatly appreciated.
The administrator has disabled public write access.

Re:Form Results as a Variable in form proccess script 16 years 9 months ago #4976

PLEASE HELP ME!
I have tried using something like:
if(isset($_POST['form']['Email'])) {
$Email = {$processform['firstname']} 

But still does not work. I am sure this is simple to do! I have purchased RSform pro and even the mapping plugin to see if there are any clues in the code but is currently of no use to me. Please help.
The administrator has disabled public write access.

Re:Form Results as a Variable in form proccess script 16 years 9 months ago #4986

Ok I worked it out by trial and error. I am providing this just in case anyone else has this problem.
$email = ($_POST['form']['email']);
Ok, so that code works and does the trick.
I have a problem now. It works for text fields but if the item is a selection box the variable value is set to 'Array'. Not the value of the selected item in the selection box. I can't seem to solve it. Please help!

Post edited by: kjstudios, at: 2008/10/09 07:27<br><br>Post edited by: kjstudios, at: 2008/10/10 02:29
The administrator has disabled public write access.

Re:Form Results as a Variable in form proccess script 16 years 9 months ago #5011

  • octavian
  • octavian's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 783
  • Thank you received: 110
Hello,

Try this:
$textbox = $_POST['form']['Textboxname'];
$select = $_POST['form']['Selectname'][0];
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Re:Form Results as a Variable in form proccess script 16 years 9 months ago #5018

Thanks Strafe - It worked! Your response is greatly appreciated. Cheers!
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!