Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Need help with script
Old 06-16-2005, 10:07 AM Need help with script
lilgee's Avatar
Extreme Talker

Posts: 224
Location: NC
Trades: 0
I made this script but im stuck on what to put in it to get it to send to my email address. Can someone help me please?

Quote:
<html>
<head>
<title>Sign Up Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<form name="form1" method="post" action="">
<div align="center">Name :
<input type="text" name="textfield">
</div>
</form>
<form name="form2" method="post" action="">
<div align="center">Email :
<input type="text" name="textfield2">
</div>
</form>
<form name="form3" method="post" action="">
<div align="center">Site Name :
<input type="text" name="textfield3">
</div>
</form>
<form name="form4" method="post" action="">
<div align="center">Site URL :
<input type="text" name="textfield4">
</div>
</form>
<form action="" method="post" enctype="multipart/form-data" name="form5">
<div align="center">Banner Upload :
<input type="file" name="file">
</div>
</form>
<form name="form6" method="post" action="">
<div align="center">Need a banner :
<input name="radiobutton" type="radio" value="radiobutton">
Yes
<input name="radiobutton" type="radio" value="radiobutton">
No
</div>
</form>
<form name="form7" method="post" action="">
<div align="center">
<input type="submit" name="Submit" value="Submit">
</div>
</form>
</body>
</html>
lilgee is offline
Reply With Quote
View Public Profile Visit lilgee's homepage!
 
 
Register now for full access!
Old 06-16-2005, 10:17 AM
bez
bez's Avatar
Skilled Talker

Posts: 53
Trades: 0
HTML cannot send mails by itself.

The code you posted looks like it was created by a graphical editor or something. You should only have 1 <form> tag, inclosing everything in the form:

<form name="form1" method="post" action="">
<div align="center">Name :
<input type="text" name="textfield">
</div>
<div align="center">Email :
<input type="text" name="textfield2">
</div>
<div align="center">Site Name :
<input type="text" name="textfield3">

etc, etc, till:
</form>

It is the 'action' form attribute that tells the server what script to run on form submission. A PHP script with mail() function could work. Sending mails isnt that straightforward if you have no knowledge of scripting languages, im afraid youre going to have to do a bit more research.
bez is offline
Reply With Quote
View Public Profile
 
Old 06-16-2005, 10:22 AM
lilgee's Avatar
Extreme Talker

Posts: 224
Location: NC
Trades: 0
I dont know nuttin about php doe, you think someone can do one for me in PHP?
lilgee is offline
Reply With Quote
View Public Profile Visit lilgee's homepage!
 
Old 06-16-2005, 11:59 AM
Kyrnt's Avatar
The Post-Mod Years

Posts: 2,536
Location: Western Maryland
Trades: 0
Quote:
Originally Posted by lilgee
I dont know nuttin about php doe, you think someone can do one for me in PHP?

Read the second post in the following thread:

http://www.webmaster-talk.com/showthread.php?t=11008
__________________
—Kyrnt
Kyrnt is offline
Reply With Quote
View Public Profile Visit Kyrnt's homepage!
 
Old 06-16-2005, 01:04 PM Try This Code.
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
You need to substitute the email to your email...Where the 'form file' will be sent to.

Code:
<FORM METHOD="post" ACTION="mailto:youremail@yourdomain.com" ENCTYPE="multipart/form-data">
Name: <INPUT name="Name" value="" size="35"><BR>
Email: <INPUT name="Email" value="" size="35"><BR>
Address: <INPUT name="Address" value="" size="35"><BR>
Phone: <INPUT name="Phonel" value="" size="35"><BR>
<FORM METHOD="post" ACTION="mailto:youremail@yourdomain.com" ENCTYPE="multipart/form-data">
Attachment: <INPUT TYPE="file" NAME="attachedfile" MAXLENGTH=99 ALLOW="text/*" >
<INPUT TYPE="submit">
</FORM>
HTH,
-Brian
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 06-16-2005, 01:33 PM
Kyrnt's Avatar
The Post-Mod Years

Posts: 2,536
Location: Western Maryland
Trades: 0
Quote:
Originally Posted by Brian07002
You need to substitute the email to your email...Where the 'form file' will be sent to.

Code:
<FORM METHOD="post" ACTION="mailto:youremail@yourdomain.com" ENCTYPE="multipart/form-data">
Name: <INPUT name="Name" value="" size="35"><BR>
Email: <INPUT name="Email" value="" size="35"><BR>
Address: <INPUT name="Address" value="" size="35"><BR>
Phone: <INPUT name="Phonel" value="" size="35"><BR>
<FORM METHOD="post" ACTION="mailto:youremail@yourdomain.com" ENCTYPE="multipart/form-data">
Attachment: <INPUT TYPE="file" NAME="attachedfile" MAXLENGTH=99 ALLOW="text/*" >
<INPUT TYPE="submit">
</FORM>
HTH,
-Brian
Using the method described by Brian will launch the user's native email program and populate the message to be sent -- but the user must physically send the message.

Using the script in the link I provided allows the PHP script to send the email itself. The choice of which you prefer to use is yours, but the differences should be identified.
__________________
—Kyrnt
Kyrnt is offline
Reply With Quote
View Public Profile Visit Kyrnt's homepage!
 
Reply     « Reply to Need help with script
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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