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.

Coding Forum


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



Reply
Old 01-30-2004, 01:03 PM HTML form help
Arfan's Avatar
Ultra Talker

Posts: 280
Trades: 0
Hi
i have a HTML form which seems not to work.
the "mail it" and "reset" buttom dont work
here's the HTML code for it

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

<body background="Images/Background.jpg">
<FORM ACTION="MAILTO:Arfan_mahmood_786@hotmail.com" METHOD="POST">
<form action="--WEBBOT-SELF--" method="POST" enctype="text/plain">
<!--webbot bot="SaveResults" S-Builtin-Fields S-Form-Fields -->
<table width="71%" border="1" height="509">
<tr>
<td width="193" align="right">Surname:</td>
<td width="179"><input name="Surname" type="text" id="Surname" value="Surname">
</td>
</tr>
<tr>
<td width="193" align="right">First Name:</td>
<td><input name="First Name" type="text" id="First Name" value="First Name"></td>
</tr>
<tr>
<td width="193" align="right">Other Names:</td>
<td><input name="Other Names" type="text" id="Other Names" value="Other Names"></td>
</tr>
<tr>
<td width="193" align="right">Email Adress:</td>
<td><input name="Email Address" type="text" id="Email Address" value="Name@outgoing.com"></td>
</tr>
<tr>
<td width="193" align="right" height="28">Date Of Birth:</td>
<td height="28">
<input name="Date Of Birth Day" type="text" id="Date Of Birth Day" value="01-01-1980" size="20">
<b> (DD/MM/YYYY)</b></td>
</tr>
<tr>
<td width="193" height="26" align="right">Address </td>
<td><form name="form1" method="post" action="">
<input name="Address" type="text" id="Address" value="00 Outgoing Road">
</form>



<tr>
<td width="193" height="32" align="right">Post Code</td>
<td><form name="form2" method="post" action="">
<input name="Postcode" type="text" id="Postcode" value="OU1 1GO">
</form>




<tr>
<td align="right">How old are you:</td>
<td><select name="Age" id="Age">
<option>Please Choose</option>
<option>13-15</option>
<option>16-18</option>
<option>19-21</option>
</select>
</td>
</tr>
<tr>
<td align="right">Gender:</td>
<td><input type="radio" name="Gender" value="Male">
Male
<input type="radio" name="Gender" value="Female">
Female</td>
</tr>
<tr>
<td align="right">Type Of Holiday:</td>
<td><select name="Type of Trip" id="Type of Trip">
<option>Please Choose</option>
<option>Educational</option>
<option>Snow</option>
<option>Sun</option>
<option>Recreational</option>
</select>
</td>
</tr>
<tr>
<td align="right">Where About in Europe:</td>
<td><select name="Location of Trip" id="Location of Trip">
<option>Please Choose</option>
<option>Amsterdam</option>
<option>Dublin</option>
<option>Edinburgh</option>
<option>London</option>
<option>Paris</option>
</select>
</td>
</tr>
<tr>
<td width="193" align="right">How did you hear about us </td>
<td><form name="form3" method="post" action="">
<select name="How did u hear about us" id="How did u hear about us">
<option>Please Choose</option>
<option>Search Engine</option>
<option>Advertisment</option>
<option>Mate</option>
<option>Other</option>
</select>
</form>



<tr>
<td width="193" align="right">Comment</td>
<td><form name="form4" method="post" action="">
<textarea name="Comment" rows="5" id="Comment"></textarea>
</form>
<tr>
<td width="193" align="right"> </td>
<td>



<tr>
<td width="193" align="right"> </td>
<td>



<p align="center">
<INPUT TYPE="SUBMIT" VALUE="Mail It">
<input name="Rest" type="reset" id="Rest" value="Reset"></table>
<p align="center"> </p>
</body>
</html>

Last edited by Arfan; 01-30-2004 at 04:31 PM..
Arfan is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-30-2004, 01:04 PM
Arfan's Avatar
Ultra Talker

Posts: 280
Trades: 0
any1 know a php script that will allow this to send with out using outlook
aslo i want the php (php/asp/perl/cgi....) to send the form as html not as a attachment eg

Sure name:erer
First Name:Awerew

so this would be email to me.

also i want the php (php/asp/perl/cgi....) file to save the information to its own database so u can look at how many people have registerd on your website
__________________

Please login or register to view this content. Registration is FREE


For all your Flash work email me on

Please login or register to view this content. Registration is FREE

Last edited by Arfan; 01-30-2004 at 04:36 PM..
Arfan is offline
Reply With Quote
View Public Profile
 
Old 01-30-2004, 04:37 PM
OtterBob's Avatar
Super Talker

Posts: 116
Location: Greece, NY USA
Trades: 0
Your buttons are outside the <form> code. Sneak those puppies(and the other code that's after the </form> tag) inside the <form></form> tags and it should work.
__________________
"What? Oh {darn}! Now my last words are gonna be 'what'." - Otter Bob (Burt Reynolds), The Cherokee Kid
OtterBob is offline
Reply With Quote
View Public Profile
 
Old 01-31-2004, 05:37 AM
Arfan's Avatar
Ultra Talker

Posts: 280
Trades: 0
i tried that and the submit button works as a reset button and the reset button does nothing
__________________

Please login or register to view this content. Registration is FREE


For all your Flash work email me on

Please login or register to view this content. Registration is FREE
Arfan is offline
Reply With Quote
View Public Profile
 
Old 02-11-2004, 09:21 PM
dbzguy's Avatar
Ultra Talker

Posts: 345
Location: Artic
Trades: 0


I have the answer

Here is some mailto cgi with perl i use for a guestbook
It uses the post method and all ou have to do is add the link to it in your action

you also have to put a hidden component with the email address
This is for a minipoll i have


#!/usr/bin/perl

# That is the path to PERL just above It MUST be first in the script
# The following accepts the data from the form

if ($ENV{'REQUEST_METHOD'} eq 'POST') {

read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});

@pairs = split(/&/, $buffer);

foreach $pair (@pairs) {
($name, $value) = split(/=/, $pair);
$value =~ tr/+/ /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;

$FORM{$name} = $value;
}



# The following sends the email

# This Line below is the path to the send mail server

open (MESSAGE,"| /usr/sbin/sendmail -t");
# To change the form data being accepted jus enter the form name int the $FORM{} brackets
print MESSAGE "To: $FORM{to}\n";

print MESSAGE "Subject: Poll\n\n";
print MESSAGE "Vote:\n\n";
print MESSAGE "$FORM{character}\n";
close (MESSAGE);

&thank_you;
}




#The following creates the Thank
# You page display(the page after they
#click the button so you can change it around all you need)

sub thank_you {

print "Content-type: text/html\n\n";
print "<HTML>\n";
print "<HEAD>\n";
print "<TITLE>Thank You!</TITLE>\n";
print "</HEAD>\n";
print "<BODY BGCOLOR=#000000 TEXT=#00ced1>\n";
print "<H1>Thank You!</H1>\n";
print "\n";
print "<P>\n";
print "<H3>Your vote is greatly appreciated.<BR>\n";
print "<h4>Hope you like my site</h4>\n";
print "<P>\n";
print "</BODY>\n";
print "</HTML>\n";
exit(0);
}
__________________

Please login or register to view this content. Registration is FREE


PHP Code:
<?PHP if(ping == true) { attackuserip(); } ?>

Last edited by dbzguy; 02-12-2004 at 11:08 PM..
dbzguy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to HTML form help
 

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