New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Web Design and Hosting Creating sites, scripting, and hosting discussions.

A Big favor to ask..


Post Reply New Thread Subscribe

 
Thread Tools
quicksilver

 
quicksilver's Avatar
 
Member Since: Feb 22, 2006
Location: Bristol, UK
Posts: 318
quicksilver will become famous soon enough
Mac Specs: MBP, 2.0Ghz, 2GB RAM, 120GB HDD, 1991 Powerbook 100, Gen 2 Nano, Gen 1 Touch

quicksilver is offline
Hey guys,

I was wondering if one of you might be able to do me a favor?
I building a small website as best I can, and have a form as part of one of the pages.
Now i can write the form but not the script to email it to me and forward the viewer to a specific page.

Can anyone write me a basic script to do this? I would really appreciate it!

I believe it has to be written in perl (???) or php i think? I'm not too hot with this stuff yet.

Any help would be great!

Thanks

Oh...and only pretty girls use Macs...
QUOTE Thanks
metalsam

 
Member Since: Jan 14, 2007
Posts: 101
metalsam is on a distinguished road
Mac Specs: 1.67ghz powerbook G4, 1GB RAM, 100GB HD.

metalsam is offline
You can find this script on the internet. Do a google for free php script or something.
QUOTE Thanks
dekan

 
dekan's Avatar
 
Member Since: Mar 16, 2007
Posts: 756
dekan is a jewel in the roughdekan is a jewel in the rough

dekan is offline
you can also just do it in php. there is a mail function. just use the variables from the form.

looks like that:

Quote:
mail($receiver,$subject,$message,$header);
pretty basic, but it works.
QUOTE Thanks
quicksilver

 
quicksilver's Avatar
 
Member Since: Feb 22, 2006
Location: Bristol, UK
Posts: 318
quicksilver will become famous soon enough
Mac Specs: MBP, 2.0Ghz, 2GB RAM, 120GB HDD, 1991 Powerbook 100, Gen 2 Nano, Gen 1 Touch

quicksilver is offline
I've searched for free scripts but they all seem to contain ads and stuff.

dekan: could you elaborate slightly? i'm not good with php!

Oh...and only pretty girls use Macs...
QUOTE Thanks
Matteh117
Guest
 
Posts: n/a

Easy. Using the example above I'll show you how it's done.

Make a php page (ex. mail_script.php) with the following;
Code:
<?php
$receiver = $_POST['receiver_address'];
$subject = 'Subject of the message here';
$message 'Body of the message here - use HTML and \n for new lines';
$header = 'From: From name <from@address.com>';
mail($receiver, $subject, $message, $header);
echo ('Mail sent message to appear on screen. Maybe add a html link to go back?');
?>
I believe that should do it for you - if not just reply and I will actually test it and fix it.

In the HTML form send it to this page and make sure that the address to send to is in a textfield named 'receiver_address'.
QUOTE Thanks

Post Reply New Thread Subscribe


« html in iweb ? | Wide-screen conversion in Final Cut Express »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Is the 24" imac "too" big? pastle Apple Desktops 33 06-15-2007 01:10 PM
Apple "mini" stores: Big breakthrough, or big mistake? MichaelSullivan Apple Rumors and Reports 9 03-01-2005 01:57 PM
"And that tiny heart grew 3 times as big..." Absolute Zero Schweb's Lounge 14 01-13-2005 11:36 PM
big, big, huge problem, please help trp_m Apple Notebooks 19 11-17-2004 05:49 PM
Finally made the BIG SWITCH jasonbishop73 Switcher Hangout 7 08-20-2004 04:29 PM

All times are GMT -4. The time now is 11:56 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?