Mailing list (php/mysql)

Out of context: Reply #3

  • Started
  • Last post
  • 13 Responses
  • acescence0

    you're passing the email and key in the URL itself, so yes you need to use GET there. the subscribe form sends it's data via the post method, so you're just using $_POST in that bit of code.

    the email not appearing in the unsubscribe link is an issue with quoting. you've got a single-quoted string, which is correct when you want the string to contain double-quotes, as you've got in the href="", but php doesn't look for variables to replace in single-quoted strings. you either have to make it a double-quoted string and escape the contained quotes, or use inline concatenation like this..

    http://pastebin.com/m6fc0a6cb

    • Thank you! I will try all of this out and post again tomorrow. Good night.juhls

View thread