Efficient and affordable software for Macintosh - Maker of MaxBulk Mailer, eMail extractor, eMail Checker, e-Mail Bounce Handler

Home

Products

Downloads

News

Store

Support

Forums

Forums

It is currently Thu Jun 20, 2013 8:50 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: HTML/PHP code for unsubscribe link?
PostPosted: Thu Mar 22, 2012 7:20 pm 
Offline
User avatar

Joined: Sat Mar 17, 2012 6:02 pm
Posts: 39
Location: Lexington, Alabama
Let's say we're in subscribe_single_fixed.php, and I would like to create a regular link (instead of the default submit button) to subscribe or unsubscribe someone from a list. This should be simple. I'm a PHP novice, but I have tried everything that looks anything like this:

Code:
<a href="http://...lm/lm.php?cmd=unsubscribe&list=[name of list]&email=<?php echo $email ?>&pwd=[password]">Unsubscribe</a>


How far off am I? Is it really a lot more difficult than something like that? Also, if you can pull the $email into the string, then you should also be able to include $admin_password as well, right? That way it's a lot more secure than just having your password out there for everyone to see. Please help.


Top
 Profile E-mail  
 
 Post subject: Re: HTML/PHP code for unsubscribe link?
PostPosted: Fri Mar 23, 2012 10:16 am 
Offline
Site Admin
User avatar

Joined: Wed Dec 28, 2005 9:13 pm
Posts: 6807
PHP code is ran by the server before seeing the page to you. As a result your code is wrong since the server has no way to know the value of $email. I believe you have to omit that parameter since it is already passed by the form.


Top
 Profile E-mail  
 
 Post subject: Re: HTML/PHP code for unsubscribe link?
PostPosted: Fri Mar 23, 2012 2:43 pm 
Offline
User avatar

Joined: Sat Mar 17, 2012 6:02 pm
Posts: 39
Location: Lexington, Alabama
Ahh, I see. So shouldn't there be a way just to echo the whole string by using html in the PHP so that it is picked up by the server before the page loads? I know I've seen PHP generate html tags before in WordPress... Actually, I've seen PHP generate html in MLM! Shouldn't I be able to do that here? If so, what would the correct syntax be?


Top
 Profile E-mail  
 
 Post subject: Re: HTML/PHP code for unsubscribe link?
PostPosted: Mon Mar 26, 2012 7:06 am 
Offline
Site Admin
User avatar

Joined: Wed Dec 28, 2005 9:13 pm
Posts: 6807
It is what the subscribe_single_fixed.php page does actually. Look at the beginning, there is a some PHP code. Since the form calls itself with all the data that script catches that data and sends it to to the lm.php script.


Top
 Profile E-mail  
 
 Post subject: Re: HTML/PHP code for unsubscribe link?
PostPosted: Mon Mar 26, 2012 7:09 pm 
Offline
User avatar

Joined: Sat Mar 17, 2012 6:02 pm
Posts: 39
Location: Lexington, Alabama
My brain is too full to follow that train of thought right now, but okay!


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Home

Products

Downloads

News

Store

Support

Forums


Maxprog ® - MAX Programming, LLC - © 2001-2006 - All Rights reserved
Company Info | Site Map | Legal Notice | Privacy Policy | Jobs