toplinkage Posted July 14, 2008 Share Posted July 14, 2008 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 More sharing options...
ratcateme Posted July 14, 2008 Share Posted July 14, 2008 can you post some of the code from mail.php Scott. Link to comment https://forums.phpfreaks.com/topic/114730-need-newsletter-help/#findComment-589963 Share on other sites More sharing options...
toplinkage Posted July 14, 2008 Author Share Posted July 14, 2008 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 More sharing options...
ratcateme Posted July 14, 2008 Share Posted July 14, 2008 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 More sharing options...
toplinkage Posted July 14, 2008 Author Share Posted July 14, 2008 That did not work, and the code to remove the email address took the whole box and deleted it. Link to comment https://forums.phpfreaks.com/topic/114730-need-newsletter-help/#findComment-590011 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.