Reply
Old 02-19-2005, 06:52 AM Forms
MissT's Avatar
Novice Talker

Posts: 9
Morning Everyone

Not been on for a while since i joined, as im planning my wedding, but had a recent lull in planning so decided to get on and build my website for my web design business.

Ive got an order form on my website, and this is somthing ive never looked into before, and certainly wasnt tought about it on my web design course at college. Ive got the form there, and all the fields, that bits easy. Now im using MAILTO which i dont really want to, also when the forms filled in and sent to my email address, it come in as an attachment .att when opened up in notepad i have decipher the order.

So seeing as my H2B is techy (hes in networking not webdesign) he explained to me I should really be using Server Side Scripting as its safer and our server supports it and he pointed me to the ASP.net files on Dreamweaver. I looked around the web for help and I really cant get my head around it!!!!!! It doesnt matter how many times he explains it to me, he speaks in techy gobbligook, and im lost! or ? Why do you techys not talk in normal language??????

Anyway after looking around I found out i could use CGI? and this is an install & apparently this will decipher the .att file, but does it get round mailto?, anyway he says our server doesnt support it, but he could do it, but would prefer me to learn Server side Scripting.

I think I do know what he is talking about, but im not sure how to use the knowledge he gave me and use it. Never used ASP pages either. He knows naff all really about web design designing so cant help me. I know naff all about networking and stuff alike. so im not getting anywhere.

Any advice please? I think i just dont get it
Much appreciated
MissT is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 02-19-2005, 07:01 AM
Gaffer Sports's Avatar
Ultra Talker

Posts: 397
Name: Steve
Location: Scotland
Hi,

Congratulations on your forthcoming wedding.

I tend to use php for all my form mailing. Once the form is designed, you need to write a script in php that will send the form to you, the format of which you can decide on using html.

If you give me 5 minutes, I shall create a simple form and post the code here for you to look at.

Steve.
__________________
Media Help & Discussion
Gaffer Sports is offline
Reply With Quote
View Public Profile Visit Gaffer Sports's homepage!
 
Old 02-19-2005, 07:25 AM
Gaffer Sports's Avatar
Ultra Talker

Posts: 397
Name: Steve
Location: Scotland
Simple Form:

Quote:
<table width="100%" border="0">
<form name="My Feedback" method="post" action="http://www.me.com/scripts/myfeedbackscript.php">
<tr>
<td><label for="name"><strong>Name: </strong></label>
<input type="text" id="name" name="name" size="50">
</td>
</tr>
<tr>
<td><label for="email"><strong>Email: </strong></label>
<input type="text" id="email" name="email" size="50">
</td>
</tr>
<tr>
<td>
<input type="submit" name="Submit" value="Submit">
</td>
</tr>
</form>
</table>
Script:

Quote:
<?php

// headers for the email listed below

// Sends Details to YOU

$header .= "From: $name <$email>\n"; // the name and email address to show up in email client
$header .= "Content-Type: text/plain; charset=iso-8859-1\n";
$recipient = "me@me.com"; // enter YOUR email address here
$subject = "This is my Feedback"; // this is the subject of the email
$message = "The following entry has been submitted by :- $name.\n\nUsing the following Email address :- $email\n\n";

$msg = wordwrap( $message, 1024 );


mail($recipient, $subject, $message, $header); // the mail() function sends the message to you

// Sends Details to USER

$adminname = "Me";
$adminemail = "me@me.com";
$headers .= "From: $adminname \n"; // the name and email address to show up in email client
$headers .= "Content-Type: text/plain; charset=iso-8859-1\n";
$recipient = "$email"; // users email
$subject = "Thank you for your email"; // this is the subject of the email
$message = "Many thanks for your email regarding Me. The details submitted were :- $name.\n\n and $email\n\n";

//$msg = wordwrap( $message, 1024 );


mail($recipient, $subject, $message, $headers); // the mail() function sends the message to user

//Once the data is entered, redirect the user to give them visual confirmation
header("location: myfeedbackthanks.php");
?>
and create a file called myfeedbackthanks.php. This can be a simple html page saying Thank You.
__________________
Media Help & Discussion
Gaffer Sports is offline
Reply With Quote
View Public Profile Visit Gaffer Sports's homepage!
 
Old 02-19-2005, 07:49 AM
MissT's Avatar
Novice Talker

Posts: 9
HI Ya

Thanks for that. My fellas just grimaced he says to use that he has to install a load of stuff, but hes going to have a look for me(ha ha). Ive copied it in case i can use it. So PHP is another avenue for me to look into.
MissT is offline
Reply With Quote
View Public Profile
 
Old 02-19-2005, 07:55 AM
Gaffer Sports's Avatar
Ultra Talker

Posts: 397
Name: Steve
Location: Scotland
All you need is a server that can handle PHP, which most do nowadays.
__________________
Media Help & Discussion
Gaffer Sports is offline
Reply With Quote
View Public Profile Visit Gaffer Sports's homepage!
 
Old 02-19-2005, 08:16 AM
MissT's Avatar
Novice Talker

Posts: 9
so if i use the first set of script for the actual form, then the second script is that on a new page????

and then another page for the reply?

are we creating a new html page here?
MissT is offline
Reply With Quote
View Public Profile
 
Old 02-19-2005, 08:22 AM
MissT's Avatar
Novice Talker

Posts: 9
sorry Gaffer, im being rude, thanks for the good wishes
MissT is offline
Reply With Quote
View Public Profile
 
Old 02-19-2005, 08:44 AM
MissT's Avatar
Novice Talker

Posts: 9
Nope, hes adamant our server doesnt support it, it require a huge amount of stuff to install. Just to explain hes a developer and uses special development stuff not normal run of the mill. I dont really want his bits messed with

May have to go for ASP or ASPX
MissT is offline
Reply With Quote
View Public Profile
 
Old 02-19-2005, 09:04 AM
Gaffer Sports's Avatar
Ultra Talker

Posts: 397
Name: Steve
Location: Scotland
Quote:
Originally Posted by MissT
so if i use the first set of script for the actual form, then the second script is that on a new page????

and then another page for the reply?

are we creating a new html page here?
You create your form as normal, then create a second file called script.php or something, this is what will hold the script. You will then create a third page called thanks.php, which will basically thank the user before refreshing to the index or something.

Sorry to hear that you have no php functionality. It's a shame as it is such a great language.

Quote:
I dont really want his bits messed with
Too right, keep that until you are married
__________________
Media Help & Discussion
Gaffer Sports is offline
Reply With Quote
View Public Profile Visit Gaffer Sports's homepage!
 
Old 03-20-2005, 10:17 PM
Junior Talker

Posts: 2
I already has a PHP Script and it gives me a "Server Error" "Error sending e-mail!"
What else do I need? I'm using IIS and Foxserv for PHP. I guess it has something to do with SMTP. I don't know much about it though. Could you please help me with this? Thanks a lot in advance
Kasumi_ is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Forms
 

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 1.40181 seconds with 12 queries