Hello. I'm attempting to write a form for a web page which is using the formmail.pl script. The form works fine and all but it its the script in which i am having troubles. What I would like it to do is to relay a confirmation e-mail with the data to the sender, but also send an identical mail to a specified admin address for collecting the data. The form current sends data to just the admin address. The other issue which I am encountering is how to get the data from all fields in the html page to relay to the body portion of the e-mail. It current sends all the data from the other fields (groupname,emai l ect...) within the body, but the name (realname) is placed within the header of the e-mail.
This is the form portion of the html page -
-
<FORM METHOD="POST" ACTION="/cgi-sys/formmail.pl">
-
-
-
<INPUT TYPE="hidden" NAME="recipient" VALUE="anemail@email.com">
-
<INPUT TYPE="hidden" NAME="subject" VALUE="Registration">
-
<INPUT TYPE="hidden" NAME="env_report" VALUE="REMOTE_HOST,HTTP_USER_AGENT">
-
<INPUT TYPE="hidden" NAME="redirect" VALUE="http://www.awebaddress.com/submit.html">
-
<INPUT TYPE="hidden" NAME="sort" VALUE="order:realname,groupname,phone,email,tickets,time,message">
-
-
Your Full Name (As group contact) : <BR>
-
-
<INPUT NAME="realname" TYPE="text" size="30">
-
<BR> <BR>
-
-
Name of group : <BR>
-
-
<INPUT NAME="groupname" TYPE="text" size="30">
-
<BR> <BR>
-
-
Phone number : <BR>
-
-
<INPUT NAME="phone" TYPE="text" size="14" maxlength="12">
-
<BR> <BR>
-
-
Please enter your e-mail address : <BR>
-
-
<INPUT NAME="email" TYPE="text" size="30">
-
<BR> <BR>
-
-
Number of Tickets required : <BR>
-
-
<INPUT NAME="tickets" TYPE="text" size="5" maxlength="3">
-
<BR> <BR>
-
-
Time Attending : <BR>
-
-
<SELECT NAME="service">
-
<OPTION VALUE="5:30">5:30</option>
-
<OPTION VALUE="8:30">8:30</option>
-
</SELECT>
-
-
<BR> <BR>
-
-
Anything else we should know : <BR>
-
-
<TEXTAREA NAME="message" cols="35" rows="4" wrap="virtual"></TEXTAREA>
-
-
<BR> <BR> <BR>
-
-
<INPUT TYPE="hidden" NAME="required" VALUE="email,realname,groupname,phone,tickets,service">
-
-
<INPUT name="Submit" TYPE="submit" VALUE="Submit">
-
<INPUT name="Reset" TYPE="reset" VALUE="Reset">
-
-
</FORM>
-
-
http://www.megaupload.com/?d=KL0BY3XA
That is the link to the formmail.pl version that i am using. Sorry bout the megaupload but it was the only way i could save using major amounts of lines.
Thanks in advance for anyone who is able to help me out on this.
1 1738 numberwhun 3,509
Recognized Expert Moderator Specialist
I would suggest that you learn a little bit of Perl CGI before trying to tackle this. That way, you can then look at the formmail.pl script and try to make the modifications you speak of. If you get stuck, post your code here and we will try and help you get it working.
Regards,
Jeff
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: mcp6453 |
last post by:
I am trying to use Jack's FormMail script
(http://www.dtheatre.com/scripts/formmail). Since I'm brand new at PHP
and not very good at HTML, I have an easy question, which I will narrow
down. When the email arrives, it has this information:
v_firstname: asdf
v_lastname: asdf
b_email: asdf@bellsouth.net
v_phone: asdf
v_cellphone: asdf
|
by: Kurt |
last post by:
Hello,
I have software that allows direct submission of tech support requests.
The software connect directly to a formmail script. The problem is that
if the user types a '=' or a '&' anywhere in the message, the resulting
email is truncated at that spot.
It looks like the sub parse_form routine, which splits on '&', is
responsible. Then again, submitting the same text from a web form (to
the same formmail.pl) does not truncate the...
|
by: Craig |
last post by:
I keep getting the error "Error: Bad/No Recipient" when submitting a form
using formmail.pl
Here is the part of the formmail.pl that you are supposed to alter to suit
your needs using fake url and ip addresses:
#!/usr/bin/perl
############################################################################
##
# FormMail Version 1.92
|
by: Hmmm... |
last post by:
I am setting up a web site for a friend. Her hosting service does not
support Sendmail. It is an NT server. They recommend I use Smtp. I have
been using something like formmail.pl when I have been helping friends set
up their web sites. Does anyone know of a perl script that works like
formmail.pl, but uses Smtp. Thanks.
|
by: John Oliver |
last post by:
I'd like the email produced by FormMail to show a specific From: address
rather than postmaster@server.host.name Googling isn't helping me...
not sure what to look for :-(
--
* John Oliver http://www.john-oliver.net/ *
* California gun owners - protect your rights and join the CRPA today! *
* http://www.crpa.org/ *
* San Diego shooters come to...
| |
by: Rico |
last post by:
Hello,
I'm using formmail.asp which is an emailing utility. Basically, the user
fills out a request page, clicks "Submit" and the page posts to formmail.asp
which emails the user information.
I'm running IIS5 on a Win2k server box and recently ran the Windows Updates
(the last time I do that). Anyway, that emailing form doesn't work now on
any of the sites I host. Any ideas?
|
by: laredotornado |
last post by:
Hi, I'm using PHP 4.4.4 and have downloaded the free script
formmail.php (version 4.1b). Wondered if anyone had experienced the
same problem I'm having. I'm submitting a form to formmail.php, but
none of the variables seem to be getting recognized. Here is part of
the form I'm submitting ...
<body onload="document.forms.submit();">
Sending Order ...
<form action="formmail.php" method=post
|
by: Geoff Cox |
last post by:
Hello,
I am using the formmail.cgi script and wonder if it is possible to
have the user enter their email address and then have the results sent
to this address by formmail.cgi?
If yes, how do I do this?! That is, how do I get the user to enter
their email address and how is it transferred to formmail.cgi?
Cheers,
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |