Answers to your tech questions
Computer forums for help with removing malicious software (malware) and improving computer security

Welcome Guest to What the Tech! ( Log In | Register ) We specialize in the removal of malicious software (malware), but here you'll find free help and support for all your tech questions. We invite you to ask questions, share experiences, and learn. Explore our message boards, or register now to post messages of your own. Please Start Here. Register today (registration removes advertising)

 
Reply to this topicStart new topic
> How do I create an easy to use web form?
matty3
post Jul 28 2006, 09:43 PM
Post #1


Authentic Member
**

Group: Authentic Member
Posts: 45
Joined: 5-January 06
Member No.: 47,842
Operating System: Windows XP Home Edition



Hello,

I would like to create an easy to code web form. Could anyone help me? I just need it for like feedback etc. Would it be possible for it to send the data to an e-mail address?

Thankyou for your help,

~Matt :-)
Go to the top of the page
 
+Quote Post
Doug
post Jul 28 2006, 11:23 PM
Post #2


Global Moderator
Group Icon

Group: Global Moderator
Posts: 4,190
Joined: 15-May 05
From: California
Member No.: 32,477
Operating System: Win98, Win2k Pro, XP Pro, XP Home



Probably dozens of Members here could help, I can't.
Here is a sub-Forum at my home Forum PCPitstop where they work on Websites and coding all day long.
You might want to post there, or just lurk around and see what you can pick up from reading other posts.
You'll also be able to "Search" the Forum for similar questions.
http://forums.pcpitstop.com/index.php?showforum=27

Best Regards
Go to the top of the page
 
+Quote Post
Crow
post Jul 29 2006, 01:52 AM
Post #3


Desktop Support
****

Group: Authentic Member
Posts: 948
Joined: 13-May 03
From: Texas
Member No.: 20
Operating System: 03 server



This is the code for a form that will email the info to me at my email addy... just make sure to pay attention when you copy and paste it and change the parts that need changing... or ill be getting emails i dont want.




CODE
<html>
<body>
<form action="MAILTO:crow@crowscorner.net" method="post" enctype="text/plain">

<h3>This form sends an e-mail to me at Crow@crowscorner.net.</h3>
Name:<br>
<input type="text" name="name"
value="yourname" size="20">
<br>
Mail:<br>
<input type="text" name="mail"
value="yourmail" size="20">
<br>
Comment:<br>
<input type="text" name="comment"
value="yourcomment" size="40">
<br><br>
<input type="submit" value="Send">
<input type="reset" value="Reset">

</form>
</body>
</html>
Go to the top of the page
 
+Quote Post
matty3
post Jul 29 2006, 05:16 PM
Post #4


Authentic Member
**

Group: Authentic Member
Posts: 45
Joined: 5-January 06
Member No.: 47,842
Operating System: Windows XP Home Edition



Thankyou Crow. Is there anyway to get it so your mail program window doesn't show up or is there another code that doesn't need to use the persons mail program?

~Matt :-)
Go to the top of the page
 
+Quote Post
Braiden
post Jan 24 2008, 05:38 PM
Post #5


New Member
*

Group: New Member
Posts: 10
Joined: 24-January 08
Member No.: 76,261
Operating System: Windows XP



Web layouts can be created on simple programs like photoshop if you are good enough you can find someone to code the layout you have created, if you are making a site which you want people to be able to login you need to use a simple php script.

Looking at crows code, you can edit that as much as you want changing the email, finding a basic html layout is like your first car, you can do it up as much as you want.

Some how id say im off topic smile.gif but thats me random

This post has been edited by Braiden: Jan 24 2008, 05:40 PM
Go to the top of the page
 
+Quote Post
Ax238
post Jan 25 2008, 10:38 AM
Post #6


ASCII and ye shall receive.
Group Icon

Group: Tech Team
Posts: 723
Joined: 9-November 06
From: Somewhere out there
Member No.: 64,025
Operating System: XP Pro SP2



Hello Braiden,

Thanks for your added contributions. What you may not have been aware of when posting to this thread is that the last post before yours occurred about a year and a half ago. I'm sure if the OP was still in need of a solution, your recommendations would have been well-noted, but I would imagine he isn't still seeking assistance on the original inquiry. Don't worry about it though, it happens to the best of us. I just wouldn't want your time to be spent compiling well-written posts that the OP may never come back to read wink.gif.

Regards,

Ax
Go to the top of the page
 
+Quote Post
Brandon Turner
post Feb 6 2008, 05:28 PM
Post #7


New Member
*

Group: New Member
Posts: 1
Joined: 6-February 08
Member No.: 76,648
Operating System: XP, OS X.5



Any form using the Mailto: will pull up the local mail program.

If you want to send server based email I suggest using a server that has PHP functionality and or paying for hosting on a server that provides it.

Here is the sample code that uses the PHP function mail()

Send Email from a PHP Script Example

The first argument to this function is the recipient, the second specifies the message's subject and the third one should contain the body. So to send a simple sample message, we could use:

<?php
$to = "recipient@example.com";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>

That's it!

Once you have the basics of sending mail through PHP you can integrate it into HTML based forms as you have already used with the Mailto: setting
Here is a link to a good tutorial
http://www.thesitewizard.com/archive/feedbackphp.shtml
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   4 Calamity Jane 1,070 30th August 2008 - 10:53 PM
Last post by: Jacee
No New Posts   0 Computer Support 370 27th May 2008 - 05:04 AM
Last post by: Computer Support
No New Posts 0 scr621 802 10th April 2008 - 02:49 AM
Last post by: scr621
No New Posts 4 oneofakindgal86 7,289 22nd March 2008 - 08:26 AM
Last post by: Kronborg

RSS Time is now: 8th January 2009 - 11:39 PM
Advertisements do not imply our endorsement of that product or service. The forum is run by volunteers who donate their time and expertise. We make every attempt to ensure that the help and advice posted is accurate and will not cause harm to your computer. However, we do not guarantee that they are accurate and they are to be used at your own risk.
Member site: Alliance of Security Analysis Professionals | UNITE Against Malware
© Geeks to Go, Inc. | All Rights Reserved | Privacy Policy