Jump to content

Need Newsletter Help?


toplinkage

Recommended Posts

I will send more info once I know what to send. Here is the website with the newsletter on it www.theopalminer.com if you look to the left you will see the box for the newsletter, if you type in your email and click go it comes up as can't read page format.

 

Thanks

Morris

www.50stateads.com

Link to comment
https://forums.phpfreaks.com/topic/114730-need-newsletter-help/
Share on other sites

This is all the code that is in the mail.php 

 

<?

require_once("conn.php");

 

if(isset($_POST[smail]))

{

if(!empty($_POST[nEmail]) && ereg("@", $_POST[nEmail]))

{

$q1 = "insert into dd_newsletter set nemail = '$_POST[nEmail]' ";

mysql_query($q1);

 

if(!mysql_error())

{

header("location:mail_thankyou.php");

exit();

}

}

}

 

header("location:index.php");

exit();

?>

 

Thanks

Morris

www.50stateads.com

Link to comment
https://forums.phpfreaks.com/topic/114730-need-newsletter-help/#findComment-589975
Share on other sites

i looked at the html on index.php the only thing i would say is

<td width="33"><input type=submit name=smail value=Go!></td>
could be
<td width="33"><input type=submit name=smail value="Go!"></td>

also here is some javascript i find use full in textboxes

<input type=text name=nEmail size=15 value="email address" onfocus="if(this.value=='email address') {this.value='';}" onblur="if(this.value=='') {this.value='email address';}">

that will remove "email address" from the textbox if someone clicks in it.

 

Scott.

 

 

Link to comment
https://forums.phpfreaks.com/topic/114730-need-newsletter-help/#findComment-589986
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.