Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - jt lsav

Pages: [1]
1
Well, I finally figured it out.... This was the code snip I was missing:

Code: [Select]
Email: <input type="text" name="email" value="<?php echo $_GET['email']; ?>" />
Specifically the info after the 'value' variable.

Ernie, thanks for your help. I realize I may have not been as specific as necessary in my question.

2
?Bump?

3
All of the POST data is in a separate doc, view code referencing insert.php. all db info is contained there.

4
It does make sense however this page is used for other mailing campaigns in which the mailer does not have the ability to inject the users email address. Thus the need for a general unsubscribe page in which if the url is populated with the email it will automatically be inputted to the form and they simply click submit, or the user can manually input an email address and click submit.

5
Here's the working end of the code:

Code: [Select]
<script language="JavaScript" type="text/javascript">
<!--
function checkform ( form )
{
  // ** START **
  if (form.email.value == "") {
    alert( "Please enter your email address." );
    form.email.focus();
    return false ;
  }
  // ** END **
  return true ;
}
//-->
</script>


</head>

<body>

<!-- START: gradient -->
<div id="gradient">

<!-- START: main -->
<div id="main">

<?php include('inc/masthead.inc.php'); ?>

<!-- START: flash-content -->
<div id="flash-content">

</div>
<!-- END: flash-content -->

<!-- START: content-wrapper -->
<div id="content-wrapper">



<!-- START: primary-content -->
<table id="primary-content" cellspacing="0">
<tr>

</tr>

<tr>
<td id="body">
<table id="columns" cellspacing="0">
<tr>
<td>
<h2>Unsubscribe From Our Mailing List</h2>




<form action="insert.php" method="post" onsubmit="return checkform(this);">
Email: <input type="text" name="email" />
<input type="submit" value="remove" />
</form>
</ul>
</td>

</tr>
<tr><td id="gutter">&nbsp;</td></tr>
</table>
</td>
</tr>
</table>
<!-- END: primary-content -->

</div>
<!-- END: content-wrapper -->

<?php include('inc/footer.inc.php'); ?>
</div>
<!-- END: main -->

</div>
<!-- END: gradient -->

</body>

6
We are doing a simple email campaign and need to include an unsubscribe link. I have the page and db built for the page however I'd like the 'email' field to populate from a unique url, such as:

www.myweb.com/unsubscribe.php?email=email@gmail.com

I can't seem to get this info from the url to the text box. Thanks in advance for any assistance!

Pages: [1]