Automatic confirmation subscriber for hidden webform

Following the documentation on the website,
I created a hidden form to automatically subscribe in my phpList an user, when he fill out the contact form on my site.
Usually the subscriber receives an email to confirm your registration, when direct access to my phpList
I wanted to know if they can handle differently if the subscriber that’s entered via hidden form. I would like the user’s subscription is made directly without confirmation.
it’s possible? There is a particular parameter to be included in the string passed with method = "POST"

can you link to this?


This is the link:

My active list in 6

<div style="display:none;">
	<iframe id="ponyo_frame" name="ponyo_frame"></iframe>    
	<form id="richiesta_info_form" method="POST" action="" target="ponyo_frame">
		<input name="email" size="20" type="text" value="<?php echo $_SESSION['email'];?>" />
		<input name="emailconfirm" size="20" type="text" value="<?php echo $_SESSION['email'];?>" />
		<input name="list[6]" type="hidden" value="signup" checked /> 
		<input id="htmlemail" name="htmlemail" type="hidden" value="1" />
		<input type="hidden" name="subscribe" value="yes">

You could shortcut the whole thing by running this on submit…

//    ADDS New Subscriber to selected list, confirmed

$servername = "";    //ENTER YOUR DOMAIN NAME
$username = "mydbusername";        //ENTER YOUR DATABASE USERNAME
$password = "mydbpassword";        //ENTER YOUR DATABASE PASSWORD
$dbname = "mydbname";            //ENTER YOUR DATABASE NAME
$listid = 6;                    //THE listid YOU WANT TO ADD THE EMAIL TO
$addy = $_SESSION['email'];
$mydate = date('Y-m-d H:i:s');
$conn = mysqli_connect($servername, $username, $password, $dbname);

if (!$conn) {
    die("Connection failed: " . mysqli_connect_error());
} else {
    $sql = "SELECT ".$dbprefix." ";
    $sql .= "FROM ".$dbname.".".$dbprefix."_user_user ";
    $sql .= "INNER JOIN ".$dbname.".".$dbprefix."_listuser ON (".$dbprefix." = ".$dbprefix."_listuser.userid) ";
    $sql .= "WHERE ".$dbprefix." = '".$addy."' AND listid = '".$listid."';";
    $result = mysqli_query($conn, $sql);
    $exists = $result->num_rows;
    if ($exists > '0'){
        echo "$addy is already on list $listid<br />";
    } else {
        echo "I'll add $addy to list $listid<br />";
        $query = "INSERT into ".$dbprefix."_user_user(email, confirmed, entered) values ('$addy', '1', '$mydate');";
        mysqli_query($conn, $query);
        $query = "SELECT id FROM ".$dbprefix."_user_user WHERE email = '".$addy."';";
        $uuid = mysqli_query($conn, $query);
        $row = mysqli_fetch_array($uuid);
        $luuserid = $row['id'];
        $query = "INSERT into ".$dbprefix."_listuser(userid,listid,entered,modified) values ( '$luuserid', '$listid', '$mydate', '$mydate');";
        mysqli_query($conn, $query);

If you create a custom subscribe form and you want people to automatically be confirmed when they fill it out,
The forms “Action” attribute should point to this script.

None of that is programmed into the script… but it shouldn’t be difficult to add it in.

To automatically confirmed when people subscribing…

You got to edit on your subscribelib2.php
There’s a line where you can just change 0 to 1.

This is what we call single opt in…