This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
How to limit access to redirect page, after submission?
Started 16 years ago by MvdL79 | 27 posts |
-
Yuniar HELP!!!! I constantly get the You are not authorized to see this page! with the above method. I have custom code in view-functions.php that look like this:
//CUSTOM CODE session_start(); $session_id = session_id(); session_regenerate_id(); $new_sessionid = session_id();
its so that I can generate a new session Id to be place in a hidden field on the form so that I can track it later is this interfering witht the code also I'm using form redirect to . http://www.mydomain.com/success.php
Posted 13 years ago # -
i can send you the file if need be thanks.
Posted 13 years ago # -
drumaboy -- yes, please send me the file and let me know the URL to your form. I'll check it.
MachForm Founder
Posted 13 years ago # -
ok I will and I will re-explain there as well.
Posted 13 years ago # -
solution that ended up working for my session_regenerate_id() had nothing to do with the problem, I had the code snippet in the wrong place....man do I love Machforms.
unset($_SESSION['is_valid_user']); unset($_SESSION['form_data']); if ($form_id == 15) { ///CUSTOM CODE FOR GLOW EVITE $_SESSION['is_valid_user'] = true; $_SESSION['form_data'] = $table_data; /// }
Posted 13 years ago # -
Hi I'm trying to echo the checkbox labels that were selected on a custom success.php page. I've got the other text fields fields outputting ok by following the instructions here but I'm struggling with the checkboxes.
I'm using multiple forms with different checkbox labels so if possible I'd like to use the form id.
Posted 13 years ago # -
For checkboxes or radio button, you will only get the index number of the selected choice. To get the actual label, you'll need to do a query to "ap_element_options" table. There you'll find the list of the actual labels for your checkboxes/radio buttons.
MachForm Founder
Posted 13 years ago #
Reply
You must log in to post.