help with order for needed

This is a discussion on "help with order for needed" within the Web Page Design section. This forum, and the thread "help with order for needed are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 20th, 2006, 16:18
Highly Reputable Member
Join Date: Jul 2005
Location: Northampton, England
Age: 19
Posts: 506
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to bruno89
help with order for needed

yo peeps

im trying to make an order form for my sisters site and iv got what i need BUT! wen you click on submit it opens up outlook and i need to to just send it strait to my email adress.. HELP ME PLEASE !
Code: Select all
<form id="form1" name="form1" method="post" action="mailto:bruno_89@hotmail.co.uk">
<p>Name::
<input type="text" name="Name" />
</p>
<p>Email::
<input type="text" name="Email" />
</p>
<p>Address::
<input type="text" name="Address" />
</p>
<p>What Would You Like To Order? :: </p>
<p>
<textarea name="oder this">I would like to order item number?</textarea>
</p>
<p>How would you like to pay? </p>
<p>
Cash::
<input name="radiobutton" type="radio" value="cash" />
</p>
<p>
Cheque::
<input name="radiobutton" type="radio" value="cheque" />
</p>
<p>PayPal::
<input name="radiobutton" type="radio" value="paypal" />
</p>
<p>
<input type="submit" name="Submit" value="Submit" />
<input type="reset" name="Submit2" value="Reset" />
</p>
</form>
theres the code see if u can find out whats rong im dumb i dont know

Last edited by bruno89; Sep 20th, 2006 at 16:22. Reason: to much code to sort though :)
Reply With Quote

  #2 (permalink)  
Old Sep 20th, 2006, 17:29
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: help with order for needed

It's doing exactly what you are telling it to do in the 'action' attribute.

You cannot send the form contents directly to an email address without using some form of server-side scripting.
Reply With Quote
  #3 (permalink)  
Old Sep 20th, 2006, 18:25
Highly Reputable Member
Join Date: Aug 2005
Location: 3rd Branch Up, Old Oak.
Age: 48
Posts: 658
Thanks: 0
Thanked 0 Times in 0 Posts
Re: help with order for needed

As Geoff says, the mailto instruction will send an e-mail using the default e-mail client.
What you want it to do is send a mail via the site itself.
To do that you need to have a script running on your hosts server giving further instructions as to where to store the message and how, and where, to send it.
It'd likely you will also need to have some infrastructure involving a separate file to deal with messages.
You'd be best asking in the PHP forum, or looking in hotscripts, to see if you can find something free.
Reply With Quote
  #4 (permalink)  
Old Sep 20th, 2006, 18:53
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: help with order for needed

Yeah I would say PHP is the way to go. I have a PHP script that I built a while back. If you wanted you could use it. But it is a pain to set up, on a free hosting account. Because you have to give like true URL's and such. Where are you hosting this website at?
Reply With Quote
  #5 (permalink)  
Old Sep 21st, 2006, 12:58
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,763
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: help with order for needed

a PHP mailer is fairly simple. I will post one here tonight.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #6 (permalink)  
Old Sep 21st, 2006, 18:38
Highly Reputable Member
Join Date: Jul 2005
Location: Northampton, England
Age: 19
Posts: 506
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to bruno89
Re: help with order for needed

Quote:
Originally Posted by JacobHaug View Post
Yeah I would say PHP is the way to go. I have a PHP script that I built a while back. If you wanted you could use it. But it is a pain to set up, on a free hosting account. Because you have to give like true URL's and such. Where are you hosting this website at?

freewebs YES I NO ITS C*** every 1 has told me i no i no lol but ye if the offers open ill take it

and moojoo thanks mate
Reply With Quote
  #7 (permalink)  
Old Sep 22nd, 2006, 02:09
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: help with order for needed

Yeah... find a nice cheap host. They're probably faster and will be much nicer to work with. I second using PHP.

If freewebs doesn't support PHP, you could always try to find a remote PHP mailing script. Then, in the action attribute, you'd put something like: action="http://phpscripts.com/remote-mail.php"

I had a very quick look around, but I didn't find anything like that.
Reply With Quote
  #8 (permalink)  
Old Sep 22nd, 2006, 09:15
Highly Reputable Member
Join Date: Jul 2005
Location: Northampton, England
Age: 19
Posts: 506
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to bruno89
Re: help with order for needed

Quote:
Originally Posted by ryanfait View Post
Yeah... find a nice cheap host. They're probably faster and will be much nicer to work with. I second using PHP.

If freewebs doesn't support PHP, you could always try to find a remote PHP mailing script. Then, in the action attribute, you'd put something like: action="http://phpscripts.com/remote-mail.php"

I had a very quick look around, but I didn't find anything like that.
ok thank you ill have a look around and as for the hosting iv got a offer off some 1 for free hosting iv just got to buy the domain lol and at the minute im giving all my money to my mum seen as she bourt me a car but i spose i can spare £10 to buy 1.. iv found to cheep 1s www.godaddy.com and www.namecheap.com any body no if there reliable?
Reply With Quote
  #9 (permalink)  
Old Sep 22nd, 2006, 09:51
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: help with order for needed

Godaddy is... I get all my domains through them. I don't know about namecheap though.
Reply With Quote
  #10 (permalink)  
Old Sep 22nd, 2006, 14:35
Highly Reputable Member
Join Date: Jul 2005
Location: Northampton, England
Age: 19
Posts: 506
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to bruno89
Re: help with order for needed

ok thank you
Reply With Quote
  #11 (permalink)  
Old Sep 22nd, 2006, 14:37
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,763
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: help with order for needed

Very few free hosts are good, some are excellent but they are very selective on who they take.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #12 (permalink)  
Old Sep 22nd, 2006, 22:10
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,763
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: help with order for needed

PHP Mail Script in its simplicity that I wrote a while ago, I am sure they could be improved:

Basic Mail Script:

Code: Select all
<?php
$mailto = "email@email.com";
$subject = "$subject";
$messagesend = "\n";
mail($mailto, "$subject", $messagesend, "From: $email\n");
?>
Form Validation:

Code: Select all
<?php
if(empty($name) || empty($email) || empty($subject) || empty($message)) {
    echo "<h3>There was an error.</h3>\n";
    echo "<p>Please <a href='$prvpage'>go back</a> and fill in all the required fields.</p>";
}

else {
    
$mailto = "mail@mail.com";
$subject = "$subject";
$messagesend = "Name: $name\nCompany: $company\nE-Mail: $email\nPhone: $phone\n\n$message\n";
mail($mailto, "$subject", $messagesend, "From: $email\n");

echo "<h3>Your message has been sent</h3>\n";
echo "<p>$name, thank you for taking the time to contact us. We respond to all e-mails as quickly as possible. if you have any other questions feel free to contact us by phone at 555.555.5555.</p>\n";
echo "<dl>\n<dt>Sent Message:</dt>\n<dd>$subject</dd>\n<dd>$message</dd>\n</dl>\n";
}
?>
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #13 (permalink)  
Old Sep 23rd, 2006, 13:27
Highly Reputable Member
Join Date: Jul 2005
Location: Northampton, England
Age: 19
Posts: 506
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to bruno89
Re: help with order for needed

so do i just put that on the page iv got the form on and keep the for iv made?
Reply With Quote
  #14 (permalink)  
Old Sep 23rd, 2006, 16:44
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,763
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: help with order for needed

The action on your contact page whatever should point to the PHP mail script. The variables have to have the same name as the form elements to pass the data.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #15 (permalink)  
Old Sep 23rd, 2006, 17:10
Highly Reputable Member
Join Date: Jul 2005
Location: Northampton, England
Age: 19
Posts: 506
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to bruno89
Re: help with order for needed

that went in 1 ear and out the other :S IM CONFUSED lol
Reply With Quote
  #16 (permalink)  
Old Sep 24th, 2006, 12:44
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,763
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: help with order for needed

Ok the action in to form needs to go to www.yourdomain.com/phpmailscript.php so say you have a contact form with

name
email
message

variables could be say $name, $email, $message using hidden fields you can store the information and transfer it to th next page etc..
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #17 (permalink)  
Old Sep 25th, 2006, 09:35
Highly Reputable Member
Join Date: Jul 2005
Location: Northampton, England
Age: 19
Posts: 506
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to bruno89
Re: help with order for needed

Quote:
Originally Posted by moojoo View Post
Ok the action in to form needs to go to www.yourdomain.com/phpmailscript.php so say you have a contact form with

name
email
message

variables could be say $name, $email, $message using hidden fields you can store the information and transfer it to th next page etc..
ok i think i understand you now ill see what happens
Reply With Quote
  #18 (permalink)  
Old Sep 25th, 2006, 10:40
Highly Reputable Member
Join Date: Jul 2005
Location: Northampton, England
Age: 19
Posts: 506
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to bruno89
Re: help with order for needed

ok rooky **** up freewebs dosn't even accept php so now i gota look for a free host that does ( becouse im tight like that + im skint ) so ye anyone know any lol if not dont worry im sure ill find somthing out there in the big old cyber world
Reply With Quote
  #19 (permalink)  
Old Sep 27th, 2006, 14:57
Highly Reputable Member
Join Date: Jul 2005
Location: Northampton, England
Age: 19
Posts: 506
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to bruno89
Re: help with order for needed

ok sorted it out now it all good just need a domain now lol
Reply With Quote
  #20 (permalink)  
Old Sep 27th, 2006, 18:42
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: help with order for needed

Check out godaddy.com for cheap domain names!!
Reply With Quote
Reply

Tags
php mailer, html mailer, send mail

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP order form DezMarker PHP Forum 4 Apr 6th, 2008 22:54
Order By Maverick25r PHP Forum 2 Jun 28th, 2007 13:29
Tab Order aje Web Page Design 2 May 13th, 2006 14:49
Windowless controls / z-order ttupper Web Page Design 4 Nov 4th, 2005 14:54
Introductions are in order Anonymous User Introduce Yourself 3 Jun 22nd, 2004 08:25


All times are GMT. The time now is 18:01.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43