Forums

Redirect based on form data

kkurtz 02 May, 2013
Hi,
I have a form with several sets of radio buttons. I want to redirect the user on form submit to a php page which will display items based on the selections made in the radio buttons.

I've tried using the cURL with the URL and then putting in a parm (name=palette) where palette is the name of one of the radio groups. After the cURL action there is a Redirect User action with the URL in it.

I also tried the Redirect URL and put the parm in there.

When I turn on the Debugger I can see that the value for palette is there and that the URL is there, but when it shows the Redirect URL it does not append the parm. I can click on the link and get to the page, but of course the parm is missing.

Here is the output from the debugger
Data Array:
Array
(
[chronoform] => chapter_website_build_V2
[event] => submit
[Itemid] => 245
[option] => com_chronoforms
[view] => form
[palette] => d
[input_submit_25] => Submit
[cdee44682c23b5f927240038e193ac07] => 1
[curl] =>
)

Validation Errors:
Array
(
)

Debug Data 1.
curl
CURL OK : the CURL function was found on this server.
$curl_values: name=d
curl_target_url: http://www.californiadar.org/template-gallery/php1.php

redirect_user
redirect_user_target_url: http://www.californiadar.org/template-gallery/php1.php
Redirect URL (click to continue):
http://www.californiadar.org/template-gallery/php1.php


I notice that in the Array section the [curl] => is empty

I know I'm missing something.

Thanks for your help,
kkurtz
Max_admin 10 May, 2013
Hi,

You may simply use this code directly in a "Custom code" action:


<?php
$mainframe = JFactory::getApplication();
$mainframe->redirect("http://www.californiadar.org/template-gallery/php1.php");


Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.