You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 272 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - MSN Messenger Invitation Module [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Blind-Summit
Sergeant
Sergeant


Joined: Jan 17, 2004
Posts: 110

Location: Norwich, England

PostPosted: Thu Apr 20, 2006 3:59 am Reply with quoteBack to top

I have been working on a new module that uses the msn listgrabber code. It takes it several steps further and allows people to get the list of their contacts and then e-mails them with an invitation to join the website.

I have got it in the form of a nice module, and it grabs my list of contacts and puts them into a form list with each one having a checkbox. My problem is what code to use to pick out which contacts the user has selected, and then to e-mail them.

I am running a foreach loop that calls the listgrabber and outputs the e-mail inside an <input type="checkbox"> tag but i need to know what name and value to assign each checkbox (I presume just copy the e-mail for each) and then how to pull that list into a SendMail function

Any ideas?

ps - I hope this is the correct section to post in - if not, then I apologise

_________________
[img]http://www.blind-summit.co.uk/sig.php[/img]
Find all posts by Blind-SummitView user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Thu Apr 20, 2006 4:38 am Reply with quoteBack to top

Just put the email value into an array, PHP should translate it automatically into a PHP array

<input type="checkbox" name="emaillist[0]" value="test@test.com">

Increment the number in the name for each value

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Blind-Summit
Sergeant
Sergeant


Joined: Jan 17, 2004
Posts: 110

Location: Norwich, England

PostPosted: Thu Apr 20, 2006 6:00 am Reply with quoteBack to top

No matter - i did something similar - I used their e-mail as the value and set the name to the same for an array. I then just got the list in a POST command.

It doesn't send an e-mail yet as i am just testing it - but have a look here:

http://www.blind-summit.co.uk/modules.php?name=MSN_Invite

_________________
[img]http://www.blind-summit.co.uk/sig.php[/img]
Find all posts by Blind-SummitView user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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 vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.080 Seconds - 467 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::