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

I need email address from actual form in post_function.php


  1. inthanet
    Member

    Hi there,
    first at all I like your script. I have made some improvements for the forms we use all no problem. I'm looking for a way how I get an field value (in my case the email address) from the actual form in post_function.php.

    Why I need:
    In your script you have the function "Limit One Entry Per User". Ok this function check the IP adress. I have modified this that one entry per day is valid instead one entry at all. This works, no problem. The problem is if 2 or more user use this from in an internet shop than all the user will have the same IP. Here exact I need the field value from the actual form (email) to check IP and EMAIL. If the same within 24 hour the user get the message " Sorry,.... per day".

    Thanks in advance.

    Best regards,
    Uwe

    Posted 15 years ago #
  2. redityo

    Hi Uwe,

    If you want to get an email element you can get it by add some code in "post-function.php",try to search around line 303 and you will find this code :

    $table_data[$element_name] = $element_data;

    put exactly bellow that code

    if ($form_id == 3 && $element_id == 3) {
    	$_SESSION['email_value'] =$element_data;
    }

    In there I assume you are using form with id = 3 and email element id = 3, you should adjust the id with yours.


    MachForm Support

    Posted 15 years ago #
  3. inthanet
    Member

    Hello,
    Thanks for your Info,
    works perfect that was exacly what I needed.

    Best regards,
    Uwe

    Posted 15 years ago #

RSS feed for this topic

Reply