Free Press Release Submission




MB Publishing Webmaster Resource ::
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin 


Combining Two Databases

 
Post new topic   Reply to topic    MB Publishing Webmaster Resource Forum Index -> Php Nuke Version 6.5
View previous topic :: View next topic  
Author Message
Colocation
Site Admin
Site Admin


Joined: Jan 07, 2004
Posts: 404

PostPosted: Tue Feb 10, 2004 7:51 pm    Post subject: Combining Two Databases Reply with quote

I have two databases, one is for nuke itself which is standard. The second is a mailing list which is subscribed to by using the following html form:

Code:
<form action=http://www.widjets.com/cgi-bin/widjets/submit.pl method=post >
<table>
  <tr><td>Your Name<td><input type=text name=name>
  <tr><td>Email Address<td><input type=text name=email_REQUIRED>
 
<input type=hidden name=username value=widjects> </table><br><br>* Denotes a required field<br><br><input type=submit value='Sign me up'></form><br>


The task is to now combine this, so when user "A" creates a member account in nuke, this form is also triggered in order to set them into the third part newsletter.

Is this something for the Your_Account module?

Thanks.
Back to top
View users profile Send private message Visit posters website Yahoo Messenger
Colocation
Site Admin
Site Admin


Joined: Jan 07, 2004
Posts: 404

PostPosted: Sat Feb 14, 2004 5:33 am    Post subject: Finish User Function for Sending Additional Mail Reply with quote

After discussions with the php doctor it was found that the mailing database can be initiated simply by sending an e-mail.

Therefore the function finishNewUser in the modules/Your_Account/index.php was modified to include this code:

Code:
mail("widjets@widjets.com", "sign me up", "sign me up", "From: $user_email");


That was added on a new line right after this:

Code:
mail($user_email, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());


Now when a user signs up for nuke they get entered into nuke's database as normal and also into the third party database for newsletter purposes. This could be extended to as many extra databases as required (futher niche products) by adding more lines.
Back to top
View users profile Send private message Visit posters website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    MB Publishing Webmaster Resource Forum Index -> Php Nuke Version 6.5 All times are GMT + 1 Hour
Page 1 of 1

 

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
Home | News Feeds | Release Archive | Web Marketing | Weight Loss | Publish Your Links | Press Release Topics | Free Downloads | Press FAQs | AvantGO | Amazon Store
Webmaster Forums | Search Releases | Press Topics | Feedback | Submit Press Release | Webmaster Surveys | Recommend | Top | Account | PM | Prweb | Free Link Submission | Add Downloads | New Media | Audio School | TOS

The comments are property of their posters, all the rest 2004 - 2008 by MB
Audana Ltd
You can syndicate our news using the file backend.php
Web site engine's code is Copyright © 2003 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.779 Seconds. -