Reply
Old 04-25-2008, 05:36 PM e-cards
aslanandbeez's Avatar
Average Talker

Posts: 17
Hey, I'm planning oh having some e-cards on a site, the idea is someone picks one of four designs maybe with a radio or checkbox and fills in their name and email address and the recipient's email address and name which along with the picture and a message get sent to them.

I have a vague idea about some of the aspects, but can anybody point me in the righ direction of what i might need to do, or better yet a kind of tutorial?

Anybody helping me will earn some serious karma points
__________________
Aslan & Beez Web Design - Today, Tomorrow, Forever
aslanandbeez is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 04-25-2008, 06:06 PM Re: e-cards
goheadtry's Avatar
Webmaster Talker

Posts: 715
Name: John
Location: United States of America, California
Use echo in php and image generation.
goheadtry is offline
Reply With Quote
View Public Profile Visit goheadtry's homepage!
 
Old 04-25-2008, 08:44 PM Re: e-cards
Super Talker

Posts: 117
Use $_POST to retrieve the user's form input. (Or $_GET if your <form> method is get. Post would be more appropriate, though.)

Then use if or switch to add the correct image into your email output variable.

Then put the HTML-encoded message into a mail() function.

Then use echo() to tell the sender that it's been sent or header() to redirect them to a pre-made success page (or failure--if(!mail(...)) { //failure } else { //success })


This is fairly simple if you know PHP and HTML well. (But, hey, we all learned sometime, hope this helps ya.)
__________________
Make flash movies and games with free, open-source software: Free Flash Program.
gopher292 is offline
Reply With Quote
View Public Profile
 
Old 04-26-2008, 08:40 PM Re: e-cards
aslanandbeez's Avatar
Average Talker

Posts: 17
Thanks it's all very helpful, it's given me something to research (I'm just staring out with PHP) Do I need to store the card examples in a database?
__________________
Aslan & Beez Web Design - Today, Tomorrow, Forever
aslanandbeez is offline
Reply With Quote
View Public Profile
 
Old 04-27-2008, 03:04 AM Re: e-cards
solomongaby's Avatar
Webmaster Talker

Latest Blog Post:
How Do You Find Music Online ?
Posts: 522
Name: Gabe Solomon
Location: Romania
you store the cards in a folder on the server,
in the data base you make a table that hods something like :
---ecardID
---ecardCatID ( the ID number of the cards Category )
---ecardName
---ecardFileName
---cardDescription

also you need to make a table for sent ecards like :
---secardID
---ecardID
---secardMessage
---secardDate

and maybe add the sender and recepient.
__________________
If you like my posts ... TK is appreciated:)
Web Directory | Blog
solomongaby is offline
Reply With Quote
View Public Profile Visit solomongaby's homepage!
 
Reply     « Reply to e-cards
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.15114 seconds with 12 queries