I am just learning PhP, and need to modify a form. It’s currently submitting an email address to a newsletter subscription database, and I also need it to submit the same email address to the Subscribe2 WP plugin. Any suggestions for how to do this? I may need to be walked through it as I am quite new to this. Thanks!
Here is the current form:
<form method=”post” action=”
<div style=”font-family: verdana; font-size: 11px; width: 110px; padding: 7px; margin: 0 12px; border: 1px solid #8D8368; background: #8D8368″>
<strong><span style=”color: #ffffff;”>Sign Up For Newsletter</span></strong><br/><br/>
<label style=”color: #ffffff;”>Email Address:</label><br/>
<input name=”email_address” size=”12″ style=”margin-top: 5px; border: 1px solid #999; padding: 3px;”/><br/>
<input type=”submit” value=”Subscribe” style=”margin-top: 5px; border: 1px solid #999; padding: 3px;”/><br/>
</div>
</form>
It needs to be combined with this code, to submit the email address to Subscribe2.
global $mysubscribe2;
$mysubscribe2->email = $email;
if ( '1' !== $mysubscribe2->is_public($mysubscribe2->email) ) {
$mysubscribe2->add($this->email);
$status = $mysubscribe2->send_confirm('add'?;
}