• 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: Simple question

Simple question 17 years 1 month ago #2446

  • jcsickz
  • jcsickz's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Ok, I apparently don't understand how RSForm handles variables. I am simply trying to get RSForm to display the contents of a form field on the next page. The form name is \"subtype\". The field name is \"yesno\".

I tried putting this into \"script called on form process\":
echo $yesno;

hmmm, that didn't work. Next, I tried:
yesno = $answer;
echo $answer;

No dice. Then I tried this:
echo $_POST['subtype']['yesno'];

Nope. Then I tried:
$answer = $_POST['subtype']['yesno'];
echo $answer;

None of these worked. I am obviously on the wrong track. Can anyone help? This really shouldn't be this difficult.
The administrator has disabled public write access.

Re:Simple question 17 years 1 month ago #2511

I'd love to know the answer to this as I've been trying to understand the same thing.

Also, when does the \"Script called on form process\" section is supposed to be called? When the form is loading or after the user clicks on a Submit button or at several times?

Thx,

Carlos
The administrator has disabled public write access.

Re:Simple question 16 years 8 months ago #4542

This is where I'm stuck as well. Will somebody please explain this?
The administrator has disabled public write access.

Re:Simple question 16 years 7 months ago #4608

Hi!

On process will be called when the form is submitted, so program accordingly

What i can say about your problem just use this code and check weather post is working or not
 
$answer = $_POST['form']['yesno'];
 
echo $answer;
exit;
 

when you do so it will print the value

after confirming the value gets printed delete exit;

now just save your value in a temporary table say some jos_temp_table

and fetch the value in the next page the following code will help you to insert your the value in the DB
$query = \"INSERT INTO `jos_temp_table` VALUES ( '\".$_POST['form']['yesno'].\"')\";
$database->setQuery( $query );
$database->query(); 

Hope this will work and let me know if you have problems with this

Cheers
Ramchandran S
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!