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.


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
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
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 :)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
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
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Sep 20th, 2006, 18:53
Elite Veteran
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Sep 21st, 2006, 12:58
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: help with order for needed

a PHP mailer is fairly simple. I will post one here tonight.
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
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
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Sep 22nd, 2006, 02:09
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
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
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Sep 22nd, 2006, 09:51
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
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
Re: help with order for needed

ok thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Sep 22nd, 2006, 14:37
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: help with order for needed

Very few free hosts are good, some are excellent but they are very selective on who they take.
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Sep 22nd, 2006, 22:10
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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";
}
?>
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
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
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old Sep 23rd, 2006, 16:44
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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.
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
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
Re: help with order for needed

that went in 1 ear and out the other :S IM CONFUSED lol
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16  
Old Sep 24th, 2006, 12:44
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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..
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #17  
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
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #18  
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
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #19  
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