home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Email submit form?

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2363
Discussions: 200,942, Posts: 2,379,330, Members: 246,305
Old March 10th, 2003, 12:09 PM     #11 (permalink)
Ultimate Member
 
crouse's Avatar
 
Join Date: Jun 2002
Location: Iowa
Posts: 2,879
Send a message via ICQ to crouse
http://www.grantszone.co.uk/cgi-bin/....cgi?id=grefer

It's a perl cgi script like the one I've listed above.
__________________
USA Linux Users Group
OpenSUSE.us
crouse is offline   Reply With Quote
Old March 10th, 2003, 12:42 PM     #12 (permalink)
Rather Large Member
 
Beemer's Avatar
 
Join Date: Oct 2001
Location: Vernon, BC, Canada
Posts: 9,244
Send a message via MSN to Beemer
If you're interested in taking a look see, I re-published an old clients pages. It uses html form submit. It took me 5 days to create the forms process. I couldn't find a free cgi script to do the work for me at the time so I created the html form submit instead. Most of the forms work is done on the Products page.

Here is the link:
http://www.beemerworld.com/stopslip

The Inquiries button on the Products page will give you a page that the source code is easily read.

The products page gives you redirects and form submits with predetirmined subject line for easy order taking.

I can make a zip file of the site so you can put it on your own machine to try out different aspects of the forms included. Only a single folder is necessary as all files are in one directory.

Cheers!
Beemer is offline   Reply With Quote
Old March 10th, 2003, 12:50 PM     #13 (permalink)
Ultimate Member
 
crouse's Avatar
 
Join Date: Jun 2002
Location: Iowa
Posts: 2,879
Send a message via ICQ to crouse
edit ....... was double post.......

Last edited by crouse : March 10th, 2003 at 12:57 PM.
crouse is offline   Reply With Quote
Old March 10th, 2003, 08:15 PM     #14 (permalink)
Ultimate Member
 
PyroSama's Avatar
 
Join Date: Nov 2002
Location: Boise, Idaho
Posts: 2,782
Send a message via ICQ to PyroSama Send a message via MSN to PyroSama
Ok the free link posted above gives a warning when you hit submit that goes somewhat as follows:

This may be a scam dont give out your creditcard info lkjf;lakdjf;laksdjf;akdfj

Continue.

Turn back.



If some one were to see that they would probably be scared off. I dont want that.


PyroSama
__________________
JOIN [FaD] | TEAM NUMBER 2037 | http://www.techimo.com/forum/t121132.html
PyroSama is offline   Reply With Quote
Old March 10th, 2003, 08:48 PM     #15 (permalink)
Ultimate Member
 
PyroSama's Avatar
 
Join Date: Nov 2002
Location: Boise, Idaho
Posts: 2,782
Send a message via ICQ to PyroSama Send a message via MSN to PyroSama
Beemer just read your post. Sure could you email it to pyrosama@msn.com ?


Thanks
PyroSama
PyroSama is offline   Reply With Quote
Old March 10th, 2003, 09:42 PM     #16 (permalink)
Rather Large Member
 
Beemer's Avatar
 
Join Date: Oct 2001
Location: Vernon, BC, Canada
Posts: 9,244
Send a message via MSN to Beemer
I'll zip it and send it along. You can decypher the source code?

Cheers!
Beemer is offline   Reply With Quote
Old March 16th, 2003, 01:19 PM     #17 (permalink)
Rather Large Member
 
Beemer's Avatar
 
Join Date: Oct 2001
Location: Vernon, BC, Canada
Posts: 9,244
Send a message via MSN to Beemer
Were you able to find what you want out of my code?

Cheers!
Beemer is offline   Reply With Quote
Old April 21st, 2003, 06:22 PM     #18 (permalink)
Junior Member
 
Join Date: Apr 2003
Posts: 1
contact.cgi

copy and paste between dotted lines
-----------------------------------------------------


#!/usr/bin/perl

require "subparseform.lib";
&Parse_Form;

print "Content-type: text/html\n\n";

if ( $input{'DEBUG'} ) {

foreach $key (sort keys(%input)) {
print "<P>The field named <B>$key</B>
contained <B>$input{$key}</B>";
}
}

$email="name@site.com";
$subject="Site Contact Request";

# if ( $input{'Name'} && $input{'Company'} && $input{'address1'} && $input{'city'} && $input{'state'} && $input{'zip'} && $input{'country'} && $input{'phone'} ) {
#open(MAIL, "|mail -s $subject $email");
open(MAIL, "|/usr/sbin/sendmail -t");
print MAIL "To: $email\n";
print MAIL "From:www.site\n";
print MAIL "Subject:Contact_Request\n";
print MAIL<<ENDMAIL;
New Contact Request from Site website..

Name ========> $input{'Name'}
Title ========> $input{'Title'}
Company ========> $input{'Company'}
Address 1 ========> $input{'address1'}
Address 2 ========> $input{'address2'}
City ========> $input{'city'}
State/Province ========> $input{'state'}
Zip/PC ========> $input{'zip'}
Country ========> $input{'country'}
Phone ========> $input{'phone'}
Fax ========> $input{'fax'}
Email Address ========> $input{'email'}
Interests ========> $input{'interests'}
Interests Description ========> $input{'interest-desc'}
Type of Industry ========> $input{'type'}
Type Description ========> $input{'type-desc'}
Comments ========> $input{'Comments'}


ENDMAIL
close (MAIL);

print << "HTMLCODE";

<body bgcolor="#333333" text="#cccccc" onLoad="setTimeout('window.history.go(-1)',3000)">
<table cellspacing="4" cellpadding="4" border="0">
<tr>
<td colspan="3" align="left">
<font face="verdana,arial,helvetica" size="2">
<b>
<br><br><br><br><br><br>
Thank you&nbsp;&nbsp;$input{'Name'}&nbsp;&nbsp;We'll contact you soon.</b></font>
</td>
</tr>
<!--
<tr>
<td><a href="javascript:window.close();">Close this window.</td>
</tr>
-->
</table>
</body>

HTMLCODE

# }
# else {
# print << "REQUIRED";
# <h2> You must complete following fields</h2>
# <UL>
# <li> Name
# <li> Company
# <li> Address 1
# <li> City
# <li> State/Province
# <li> Zip/P.C.
# <li> Country
# <li> Phone
# </UL>
# <a href="contact.shtml">Back</a>
# REQUIRED
# }



-----------------------------------------------------------------------

Maybe this is what you're looking for?

You'll also need the "subparseform.lib"


-----------------------------------------------------------------------

sub Parse_Form {if ($ENV{'REQUEST_METHOD'} eq 'GET') { @pairs = split(/&/, $ENV{'QUERY_STRING'}); } elsif ($ENV{'REQUEST_METHOD'} eq 'POST') { read (STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); @pairs = split(/&/, $buffer); if ($ENV{'QUERY_STRING'}) { @getpairs =split(/&/, $ENV{'QUERY_STRING'}); push(@pairs,@getpairs); } }else { print "Content-type: text/html\n\n"; print "<P>Use Post or GET"; }foreach $pair (@pairs) { ($key, $value) = split (/=/, $pair); $key =~ tr/+/ /; $key =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; $value =~ tr/+/ /; $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; $value =~ s/<!--(.|\n)*-->//g;if ($input{$key}) { $input{$key} .= ", $value"; }else { $input{$key} = $value; }}}1;

---------------------------------------------------------------------
captainjoon is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Making Health Care Worse (159)
The disrespect of Obama by Russian .. (14)
Wireless Televisions. (11)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Regular Build (6)
Is the PSU I received dead? (11)
Print spooler problem (15)
HIS HD5770 graphic card question (15)
windows vista security holes (9)
Install XP pro and a Vista laptop ?.. (11)
Foreign voltage (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
A good PSU? (10)
Recent Discussions
BSOD On Startup (ntoskrnl.exe) (2)
Print spooler problem (15)
Laptop with wireless problem. (1)
Wireless Televisions. (11)
Have you switched yet? (86)
Asus P4G8X Mobo (5)
screen resolution vs monitor size (2)
radeon x850xt platinum & shader 3 (4)
sms storage to PC (0)
Regular Build (6)
Open With ..... Win7 (0)
java code for fibonacci (1)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (35)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Partition Magic caused HDD problem (3)
Is the PSU I received dead? (11)
Point and Shoot Camera Suggestions. (2)
Modern Warfare 2 freeze (13)
wireless user (1)
World's largest Monopoly Game using G.. (332)
Ideal cheap graph card for PC-Gaming? (17)
BIOS won't read disk when I try to fl.. (0)
Install XP pro and a Vista laptop ?? (11)
Graphics Card Upgrade Question (1)


All times are GMT -4. The time now is 05:28 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28