Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Yea, the code is wrapped inside if statement, where I am checking for valid get request.

    And then the code should only be executed for a valid get request. I tested the code, when I dont place the code above, it is working. But when I place it back, the code is stooping its execution in the very first line this code is used.

    Yea I collected the $_GET variable

    $email = strip_tags(trim($_GET['email']));
    		global $mysubscribe2;
    		$mysubscribe2->email = $email;
    		if ( '1' !== $mysubscribe2->is_public($mysubscribe2->email) ) {
    			$mysubscribe2->add($this->email);
    			$status = $mysubscribe2->send_confirm('add');
    		}

    But when the page loads with the $_GET value, and when the execution reaches the line where I have added the code, the execution stops there and the rest of the page is blank.
    I dont even see any error messages.

    Well what I am doing is when the submit button for the newsletter form is clicked, I am calling a javascript function to collect the email address from the form.

    Then I am loading the index page again sending the email as get request. Since the newsletter form loads in a new popup window, it wont affect the form at all.

    I am then using the code provided by you in the template. But neither I am seeing any error message, but the site stops loading at that same point where I have used the code.

    It is only possible if I have sidebars in my theme . But my theme is created in such a way that there are no sidebars and i want to include the option to subscribe in the footer of my website.

    I used this code

    <form id="form-wysija-nl-php-1" method="post" action="#wysija" class="widget_wysija form-valid-sub">
    
    <p class="wysija-instruct">To subscribe to our newsletter simply add your email.</p>
    
    <span class="wysija-p-email abs-req"><input defaultvalue="" id="form-wysija-nl-php-1-abs-email" value="" class="defaultlabels validated[abs][email]" name="wysija[user][abs][email]" type="text"></span>
    
    <input class="wysija-submit wysija-submit-field" name="submit" value="Subscribe" type="submit"></p><input name="formid" value="form-wysija-nl-php-1" type="hidden">
                        <input name="action" value="save" type="hidden">
                    <input name="wysija[user_list][list_ids]" value="1" type="hidden">
                    <input name="message_success" value="You’ve successfully subscribed. Check your inbox now to confirm your subscription." type="hidden">
                    <input name="controller" value="subscribers" type="hidden"><input id="_wpnonce" name="_wpnonce" value="42e8b920d8" type="hidden"><input name="_wp_http_referer" value="/new_home/" type="hidden"><input value="1" name="wysija-page" type="hidden"><input value="9787924692" id="wysijax" type="hidden"></form>

    but it is displaying “Security failure during request. ” message

    I have a problem.. I have a custom theme and I want to include the form in my page but with only the email field. How can i do so?

Viewing 5 replies - 1 through 5 (of 5 total)