Forum

Thread tagged as: Question, Addons, Forms

Dispaying form data on success page

Hi Everyone

I'm trying to create a personalised form success page by using the name field with the H1 tag, so something like <h1>Thank you {firstname}</h1>

I added /thank-you?fname={firstname} into the success redirect in the form options (thinking I could use perch_get()) but this doesn't pass on the data in the same way as the other form option boxes do.

Any pointers would be much appreciated.

Glen

Glen Piggott

Glen Piggott 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

If your form is posted, you'll need to use perch_post(). Be sure to thoroughly escape any user input before it is output.

Perfect - thanks Drew!