cforms II User Forum

Registration is currently disabled.
Guest

FAQs

Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Redirect form values in new page
October 30, 2007
1:10 pm
Flinkas
Guest

Hi. First, sorry my english, i'm from Brazil….  :-D

My problem:
I created a basic form, with 2 fields: Name and email.
When the user insert values in the fields and submit, send values to new page, for confirmation and print.

I can't call the values in a new page!
For insert a cfom, I use the tag <!--cform--> in the page, and it works. But for the cfom values??? What i use?

Anyone help me?

thanks,
Flinkas

October 30, 2007
7:37 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

What's your URL?

cforms normally uses Ajax to submit the users input, if not then the same page cforms is on should be reloaded.

November 3, 2007
8:17 pm
BenSullins
Guest

I too am having an issue with the 'redirect data to custom script' function. I have my form set to non-ajax mode and reference the fields like so:

 

$_POST['cf2_field_2'] = $Name;

 echo $Name;

 

but recieve no output…Anyone ever work with this before?

 

Thanks,

Ben 

November 3, 2007
9:22 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Shouldn't it be the other way around in your script (on the new page):

$Name = $_POST[’cf2_field_2′];

echo $Name;

November 5, 2007
2:32 pm
Flinkas
Guest

In the new page, i use this code:

<strong>Name:</strong> <? echo $_REQUEST['cf_field_2'];  ?>

<strong>Email:</strong> <? echo $_REQUEST['cf_field_3'];  ?>

And it's works!

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
24 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3708

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5307

Posts: 18665

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)