473,803 Members | 3,356 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

From DB to email to personalized page and back

2 New Member
Hi everyone,

This is a broad question but I'm hoping someone can steer me in the right direction. I can write valid xhtml strict in the dark with my eyes shut but I'm a trial-and-error person when it comes to PHP. For that reason I'll require concrete examples if possible. I've installed and modified plenty of Joomla sites, I can wade through existing PHP code with some degree of success, and I do know how to set up a database in MySQL at least.

Here is what I am trying to do in a nutshell.

1. I have a client on shared hosting with a list of opt-in customers that can either go in a MySQL database or text file, doesn't matter:
firstname
lastname
email
user id
2. I want to generate an email (with appropriate opt-out link) to all customers with a link that includes something that will trigger the database to populate the landing page with their info so that...

3. The link opens a personalized greeting (Congratulation s Bob Smith!) and printable certificate with their unique id on it (I'll have a standard large number like 2345 with their user id appended as the last digit, pulled from the database -- unless someone has a better suggestion)

4, Customer clicks a submit button to accept

5. Customer receives confirmation email including all the details from the certificate, with cc to admin.

I know it's a lot to ask but I'm simply unsure how to even begin. I had tried modifying a pre-fab script (pommo at http://pommo.org -- excellent free subscription email program) but it uses Smarty -- more gobbledy-gook code that I don't understand -- and I'm going crazy just trying to extract the user ID so I can do the very basics. I put a request on their forum days ago with no reply so I probably have to abandon that script.

I would appreciate any assistance and I will gladly pay someone for their time or at least make a donation.

Thanks in advance,
Pam
Oct 27 '07 #1
3 1361
MarkoKlacar
296 Recognized Expert Contributor
Hi Pam,

what you, as a start,need to look at is how to send e-mail using PHP.
You can find the information here.

Now as I said, it's a start.

Let me know if you need more help, or if you want me to be give you some more infotmation.

Good luck.
Oct 29 '07 #2
Pam1234
2 New Member
Thanks for the link, I really appreciate the help. Unfortunately I've looked at that in the past and the trouble is that there are lots of replies from people arguing about the best way to handle writing code, security stuff I don't understand like header injections, and so on ad infinitem, so how does someone like me even stand a chance? Which post do I believe? Which code is correct?

I only have a few days to deadline so I don't have time to learn from scratch. So let's say I already have a script -- I'll locate one somewhere -- and it's a straightforward email program with a subscription form using PHP and MySql. What I need to know is:

- How do I write a statement to echo the user id and make it show up in the email?
- How do I then create a link from the email to a personalized web page that echoes the user's first name, last name, and user id?
- From there, how do I write a personalized confirmation email that they receive when hitting a submit button?

That's it in a nutshell. The only thing I can think of to do is to study the code of an email program's subscribe page, and how that code gets into the email... then the unsubscribe page (which is generated from a personalized link from the email) and see if I can revise it to my use. Trouble is, I tried that with Pommo and it was Smarty code. Now I'm feeling pressure to figure out something else. Thanks for any assistance.

Pam
Oct 29 '07 #3
MarkoKlacar
296 Recognized Expert Contributor
Hey Pam,

I found theese links, how to se email from php and the smtp class.

Take it from here and we'll deal with the rest after that.

Cheers and good luck
Oct 30 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1779
by: Tyler Lyon | last post by:
I am trying to find a free script that allows a user to register and login to their own personalized page that was automatically created when the user registered. I am creating a website where the users can access their personal page by logging in and on that page they can find correspondence and their history with me, etc. Can you please help me with finding a free script that does all of this? Thanks in advance, Tyler
4
1888
by: John | last post by:
Greetings, all, Several days after adding personalized URLs to my "amazing" collection of "God Loves (yourname)" mazes, it occurred to me that if someone were to create an offcolor term, then copy the URL to his own web page, that I might be penalized because my page would include that text on the resulting page. For example, let's say that "GOD LOVES JOKES" has negative connotations. Someone could create:
8
2177
by: moondaddy | last post by:
Is there a way to make the browser move back to the previous page via code behind on the server? The effect would be the same as the user clicking on the browser's back button. Thanks. -- moondaddy@nospam.com
12
3942
by: Dave G | last post by:
Apologies if this has been covered before - I couldn't find it. I currently use ASPEmail to create and send HTML emails from an Access database. The text is personalised and includes embedded graphics, eg logos and even the recipients photo. Note that everything is embedded, no attachments are sent. ASPEmail works a treat but is very long winded to create. The email designs come to me as finished HTML but I have to extract the source and...
0
9703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9566
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10555
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10300
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9127
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5503
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2974
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.