473,909 Members | 2,176 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Form Mail Question

I'm desperatrely trying to work out the perl syntax for taking a value from
a form field and putting it in another web page for example:

"Hello world my name is $my_name_field. "

I know that this is the wrong syntax but I'm damned if i can work out what
it REALLY is.
It's probably something really simple.

Please let me know either by posting here (I DO check) or email:
we*@magic2k.com
Thanks.

--
¿ Trigger ?
http://www.magic2k.com/
http://www.oddmap.co.uk
Jul 19 '05 #1
2 1636
"Neil Trigger" <em***@magic2k. com> wrote in message
news:5f******** ***********@new s-binary.blueyond er.co.uk...
I'm desperatrely trying to work out the perl syntax for taking a value from a form field and putting it in another web page for example:

"Hello world my name is $my_name_field. "

I know that this is the wrong syntax but I'm damned if i can work out what
it REALLY is.
It's probably something really simple.

Please let me know either by posting here (I DO check) or email:
we*@magic2k.com
Thanks.

--
¿ Trigger ?
http://www.magic2k.com/
http://www.oddmap.co.uk

Could you possibly include more code on what you are trying to do? Right now
I'm fairly unclear. That current code would print out $my_name_field, but
first you need to make sure you are actually processing your form so that
$my_name_field has a value from the form. If that's what you need to do, I'd
recommend cgi.pm (not sure if this is what you're still needing to do, but
I'll briefly go over it). To get the information from the previous webpage,
all you would need to do would be:

use CGI;
$query = new CGI;

$my_name_field= $query->param('whateve r_your_form_fie ld_box_name_is_ here')

print "Content-Type: text/html\n\n"; #it is possible to print your headers
with CGI.pm, but I won't go into that

print "$my_name_field ."

#end

CGI.pm gets much more complex than that, and can pretty much handle your
webpages completely from generation to processing. I personally don't use it
for everything, but the features are there. For more on CGI.pm goto
http://stein.cshl.org/WWW/software/CGI/ where you will find massive amounts
of documentation telling you what you want to know.
Jul 19 '05 #2
Wow. I knew it was something simple, but I never realised it was THAT
simple.
it works fine now Nick, thank you so much!

--
¿ Trigger ?
http://www.magic2k.com/
http://www.oddmap.co.uk
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5660
by: John | last post by:
Dear all, It been more than 3 days I am trying to debug this program, I interpret it using activePerl and it is giving (perl -wc code_process.pl) no error syntax but when I put it online, change to the appropriate mode and test the html form it gave me an 500 internel server error. I really need it to be done soon, I would not post here before I test it as much as I can,
2
5227
by: Mindful_Spirit | last post by:
I'm trying to set up a basic email feed back form like this, and was wondering about some basic configuration settings. I have used code from this website. I have it working just fine. I'm running IIS on my home machine. My problem is that I need to upload this stuff to a webhosting place and register a domain and I'm not sure what to put as the smtp mail server value
2
1752
by: Bad Little Kyle | last post by:
Yes, I'm back with one more question, but it's probably really simple for you guys! Recently I spent time creating a web-based form for our company so that a customer can input all of his own information and set up how he wants his/her stamp to look, then it will be sent to us via e-mail so we can then look it over and determine what the final cost would be. But there's only one little problem. When the customer inputs his e-mail...
1
1447
by: cartoonsmart | last post by:
Hi I got the following script going; <?php $sendTo = "myemail@myemail.com"; $subject = "My web site reply"; $headers = "From: " . $_POST; $headers .= "<" . $_POST . ">\r\n"; $headers .= "Reply-To: " . $_POST . "\r\n"; $headers .= "Return-Path: " . $_POST;
2
3384
by: Colin Halliday | last post by:
I have a Word 2003 mail merge main document (form letter) that is linked to another Word document data source for the mail merge. If I open this doc using the Word GUI, it first asks me to confirm that I want to run a query to select the data from the data source file, then it opens the form letter fine. I can preview the merged records and complete a merge to a new document. I have a VB 2006 project (.net framework 2.0) which opens the...
16
3159
by: whyyyy | last post by:
The script below works fine if the form is filled out and submitted. But a (blank) e-mail is sent whenever the page loads, even when the form is not submitted. I would like to receive the e-mail only when the form is submitted <%@LANGUAGE="VBSCRIPT"%> <% Set MyMail=CreateObject("CDO.Message")
1
1775
Chrisjc
by: Chrisjc | last post by:
I am currently working on a form I need a few things from this form. First of all here is the link to what I have so far... ( http://www.triplesource.net/php/Decal%20Offer.html ) And posted below is the code for ( submit.php ) Now the first part of the form is just a HTML page with an action pointing to ( SUBMIT.php ) Now a problem I am having is one the e-mailing... the whole form to me... but also befor that I think I should say I have * as...
5
1834
toxicpaint
by: toxicpaint | last post by:
Hi there. I can't seem to work out what I'm doing wrong here and I was wondering if you could help. I have a form to submit a question, but as the questions vary in nature, I want them to go to 3 or more e-mail addresses. I'm using a drop down menu to select the type of question the user wants to ask then using this to determine what e-mail address to pick. The cgi on the server is configured to only send an e-mail if the "mailto" field...
0
2186
by: jianxin9 | last post by:
Hi everyone, I don't have a lot of experience with ASP and I was hoping someone could help me. I want to use our ASP form along with some javascript code to create a form where our patrons can select which department they will send the form to (we are trying to consolidate forms). This is what I have so far, but when I test the form, I keep getting this error message: Mailing Failed... Error is: FromAddress Property cannot be blank. You...
5
2417
by: Henry Stock | last post by:
My ISP provides this sample for an ASP.NET capable email form. If you have any idea about how to do the following, I would greatly appreciate your help. I have a few alterations that I would like to implement, but I am not sure where to begin. First:
0
10037
marktang
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...
0
9879
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,...
0
10921
jinu1996
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...
1
11052
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,...
0
10540
tracyyun
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...
0
7249
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();...
0
6140
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4776
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
2
4336
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.