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?


  1. drumaboy46
    Member

    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 #
  2. drumaboy46
    Member

    i can send you the file if need be thanks.

    Posted 13 years ago #
  3. yuniar

    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 #
  4. drumaboy46
    Member

    ok I will and I will re-explain there as well.

    Posted 13 years ago #
  5. drumaboy46
    Member

    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 #
  6. tobyp
    Member

    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 #
  7. yuniar

    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 #

RSS feed for this topic

Reply