HTML Tutorial


 /help/HTML Help Forum   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Forms
Goto page 1, 2  Next
Post new topic   Reply to topic    HTML Help Forum -> General HTML
View previous topic :: View next topic  
Author Message
Eddie



Joined: 11 May 2004
Posts: 3
Location: France

PostPosted: Thu May 13, 2004 10:43 am     Forms Reply with quote

When you have made an form with textbox an that, and you click on "send form". Can someone give me the html to make it so that the form is e-mailed to me?
mjpliv



Joined: 11 May 2004
Posts: 402
Location: Nova Scotia

PostPosted: Thu May 13, 2004 11:37 am     Reply with quote

Once you gather the information on your HMTL form the send button passes it to a program in your cgi-bin folder written in perl, php or C for processing. Once processed, each of these languages has methods to generate email.

More info found at -

http://www.php.net/manual/en/
http://learn.perl.org/
mjpliv



Joined: 11 May 2004
Posts: 402
Location: Nova Scotia

PostPosted: Thu May 13, 2004 11:40 am     Reply with quote

Have a look at some script sites that allow you to download "canned" cgi programs that you simply configure to your needs and upload to your cgi-bin folder.

for example here is one of many -

http://www.scriptarchive.com/
gms



Joined: 11 May 2004
Posts: 3
Location: UAlbany, NY

PostPosted: Thu May 13, 2004 11:55 am     "Mailto" form without scripts Reply with quote

Another option...
Sample "Mailto" form without using scripts -
copy code to notepad
put your email address in form action="mailto:..."
save file as filename.html


Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Mailto Form Without Scripts</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#EEEEEE">
<p align="left"><font size="6"><b> Mailto: Form Without Scripts</b></font></p>
<hr width=50% align="left">
<form method="post" enctype="text/plain" action="mailto:gmsatalbany.edu" name="trythis_form">
  <table width="50%" border="0" cellspacing="5" cellpadding="5">
    <tr>
      <td width="50%">Name
        <input type="text" name="name" value="">
      </td>
      <td width="50%">E-mail
        <input type="text" name="email">
      </td>
    </tr>
  </table>
  <hr width="50%" align="left">
  <p>Purpose: (check as many as apply):</p>
  <blockquote>
    <p>To see if it works
      <input type="checkbox" name="Purpose" value="works?">
      &nbsp;&nbsp;Other
      <input type="checkbox" name="Purpose" value="other">
  </blockquote>
  <hr width=50% align="left">
  <p>Comments:
  <p>
    <textarea name="comments" cols="60" wrap="OFF" rows="2"></textarea>
  <p></p>
  <hr width="50%" align="left">
  <table width="50%" border="0" cellspacing="5" cellpadding="5">
    <tr>
      <td width="50%">What day is this?
        <input type="text" name="time">
      </td>
      <td width="50%">Where are we?
        <input type="text" name="location">
      </td>
    </tr>
  </table>
  <table width="50%" border="2" cellpadding="10">
    <tr>
      <td>
        <div align="center">
          <input type="submit" name="Submit" value="Submit">
        </div>
      </td>
      <td>
        <div align="center">
          <input type="reset" name="Reset" value="Reset">
        </div>
      </td>
    </tr>
  </table>
</form>
</body>
</html>

mjpliv



Joined: 11 May 2004
Posts: 402
Location: Nova Scotia

PostPosted: Thu May 13, 2004 1:04 pm     Reply with quote

I haven't seen that one before!

I just fired it on my localhost and tried it, works just fine although the Windows warning about sending unsecure emails might spook a few people.

None the less, the code does what it is supposed to do.
benj



Joined: 11 May 2004
Posts: 10

PostPosted: Sat May 15, 2004 1:36 am     need help for forms Reply with quote

i'm using frontpage for forms and when i upload it to tripod it doesn't work. need help dudes ...
mjpliv



Joined: 11 May 2004
Posts: 402
Location: Nova Scotia

PostPosted: Sat May 15, 2004 4:44 am     Reply with quote

Sorry, I have never tries FrontPage - can't help you here!

Maybe I should go try it and see if the forms work for me. I will get back to you
gms



Joined: 11 May 2004
Posts: 3
Location: UAlbany, NY

PostPosted: Mon May 17, 2004 5:54 am     FrontPage Forms Reply with quote

Without seeing your code, it is hard to tell what is going wrong.
A couple of years ago, I was webmaster for a large site that was created using FrontPage2002 (not my choice), so here is a shot in the dark...

How are your form properties set?

Right click in the form and choose Form properties

Click on Send to other, leave the drop-down as Custom ISAPI, NSAPI, CGI, or ASP Script

Click on Options, and type in the following:
  • Action: mailto:youremailaddress
    Method: POST
    Encoding type: text/plain

It's important to set the encoding type to "text/plain" otherwise you'll get some very strange results.

Remember that mailto forms are dependant upon your user's Web browser, email client, and operating system. They don't always work.
data



Joined: 16 May 2004
Posts: 11
Location: California

PostPosted: Tue May 18, 2004 9:11 pm     Reply with quote

hi. can someone please check this and if you can fix the errors. im am only 15 and i cant get the reset button to work and the pay thing to work. heres my html

<html>
<head>

<p align="left"><font size="6"><b> Mailto: Form Without Scripts</b></font></p>
<hr width=50% align="left">
<form method="post" enctype="text/plain" action="somethingatyahoo.com"

<tr>
<td width="50%">Name
<input type="text" name="name" value="">
<td width="50%">Last Name
<input type="text" name="name" value="">
</td>
<td width="50%">E-mail
<input type="text" name="email">
</td>
</tr>

<p>Select a Card Type
<select>

<option value="Visa">Visa

<option value="MasterCard">MasterCard</select>

<p>Card Number <input type="text" name="CARDNUM" size="16" maxlength="16">

<p>Expiration Date <input type="text" name="EXPDATE" size="4" maxlength="4">

<p align=left><br>
<p><input type="submit" "hidden" name="ACTION" value="PAY">
</form>

<input type="reset" name="Reset" value="Reset">

</body>
<html>

thankyou for your help
mjpliv



Joined: 11 May 2004
Posts: 402
Location: Nova Scotia

PostPosted: Wed May 19, 2004 2:20 am     Reply with quote

Move your input tag for the reset button inside the form tags.

Code:
<p>Expiration Date <input type="text" name="EXPDATE" size="4" maxlength="4">

<p align=left><br>
<p><input type="submit" "hidden" name="ACTION" value="PAY">
<input type="reset" name="Reset" value="Reset">
</form>

</body>
<html>
data



Joined: 16 May 2004
Posts: 11
Location: California

PostPosted: Wed May 19, 2004 3:32 pm     Reply with quote

thankyou mjpliv it worked.

can someone tell me where I put this code or if theres another code that i could put so when they press pay i can recive the information they put

<p align="left"><font size="6"><b> Mailto: Form Without Scripts</b></font></p>
<hr width=50% align="left">
<form method="post" enctype="text/plain" action="mailto:gmsatalbany.edu" name="trythis_form">

thanks for the help
mjpliv



Joined: 11 May 2004
Posts: 402
Location: Nova Scotia

PostPosted: Thu May 20, 2004 5:41 am     Reply with quote

Before I answer these questions can you give me your URL for the website for a product you are selling or plan to sell? As well, could you complete the contact information in your profile for this forum?

Basically all I see is a request for information on how to collect credit card information from people using a website.
I would feel more comfortable supplying information to you if I knew a little bit more about your "enterprise".
data



Joined: 16 May 2004
Posts: 11
Location: California

PostPosted: Thu May 20, 2004 2:52 pm     Reply with quote

well the site is not up yet because im trying to write the html code first so i can write it.i have no URL yet and i have no index page. first im trying to write the purhacing area to see if i can do it.i will fell all info like you wanted it. oh and the type of prodict is going to be sold is like tv wiers like s-video, coaxial cable, etc..
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

PostPosted: Thu May 20, 2004 7:05 pm     Reply with quote

data wrote:
well the site is not up yet because im trying to write the html code first so i can write it.i have no URL yet and i have no index page. first im trying to write the purhacing area to see if i can do it.i will fell all info like you wanted it. oh and the type of prodict is going to be sold is like tv wiers like s-video, coaxial cable, etc..

I have an ASP shopping cart script if you need that. One is pretty basic but it might be able to do the trick.
data



Joined: 16 May 2004
Posts: 11
Location: California

PostPosted: Thu May 20, 2004 7:56 pm     Reply with quote

Corey Bryant wrote:
data wrote:
well the site is not up yet because im trying to write the html code first so i can write it.i have no URL yet and i have no index page. first im trying to write the purhacing area to see if i can do it.i will fell all info like you wanted it. oh and the type of prodict is going to be sold is like tv wiers like s-video, coaxial cable, etc..

I have an ASP shopping cart script if you need that. One is pretty basic but it might be able to do the trick.


yea sure it will be very helpful. if you can please send it my email or post it which everone is confrotable for you. my email address is chris4rm323atyahoo.com
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> General HTML All times are GMT - 8 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial