473,401 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Sending Results Of Formmail To Web Page

Hello,

Can someone please provide me with the code that will allow me to send the results of formmail fields to web page as oppose to sending the results to an e-mail address. Can this be done?

Thanks
Allan Jones
Jul 1 '07 #1
13 1283
KevinADC
4,059 Expert 2GB
Your question is rather vague. I am not sure I understand what you are asking, but if it's to display the form data as a webpage instead of sending the form data to an email address, here is a barebones example using perl and the CGI module:

Expand|Select|Wrap|Line Numbers
  1. #!/usr/bin/perl
  2. use strict;
  3. use warnings;
  4. use CGI;
  5. use CGI::Carp qw/fatalsToBrowser/;
  6. my $q = CGI->new;
  7. my %IN = $q->Vars;
  8. print $q->header(),$q->start_html();
  9. foreach my $key (keys %IN) {
  10.    print "$key = $IN{$key}<br />\n";
  11. }
  12. print end_html; 
this is by no means the only way.
Jul 1 '07 #2
Thank you for your assistance.

Yes, I want to post the results of about 4 form fields to a live web page.

Is there a HTML CODE that will allow this to be done?

Allan
Jul 1 '07 #3
Sorry, just not sure how to use the CGI code you provided.
Jul 1 '07 #4
KevinADC
4,059 Expert 2GB
Thank you for your assistance.

Yes, I want to post the results of about 4 form fields to a live web page.

Is there a HTML CODE that will allow this to be done?

Allan
Do you mean you want to display the form data in an existing html page? There is no html code that allows that to be done that I am aware of. The cgi script would have to open the html document and insert the form data into the desired section of the html page. It could possibly be done with javascript too, but I am not sure.
Jul 2 '07 #5
Yes, I want the data to be posted to a separate web page. Not, the same page as the formmail.

Allan
Jul 2 '07 #6
Yes, I think Javascript is the only way to complish this task.
Jul 2 '07 #7
KevinADC
4,059 Expert 2GB
It might be, but you have not described well enough what you want to do. If the display of the form data is temporary, then javascript or perl (as a cgi script) could both work. If the data is to be a permanent part of the html page then you have to use a server side script like perl.
Jul 2 '07 #8
Sorry for the delay in getting back to this post.

I really appreciate your assistance with this matter.

Yes, the data will be permanent. Well, at least for 30 days and then I want all fields cleared.

Allan
Jul 3 '07 #9
Let me provide an example:

Let's say I have a form with the following fields:

Username:

Full Name:

E-Mail Address:

Six Random Numbers:

The above fields are being sent from order form (example: order.html) and I want the results to print to a separate page. In this example, I will call this page "results.html" which will display the details as follows:

Username: Full Name: E-Mail Address: Six Random Numbers:

User#1 John Doe1 johnd1@jd.com 25, 14, 9, 3, 20, 7
User#2 John Doe2 johnd2@jd.com 33, 50, 4, 1, 38, 46
User#3 John Doe3 johnd3@jd.com 7, 28, 41, 10, 19, 40

Hope the above helps.

Allan
Jul 3 '07 #10
Sorry, the fields did not space the way I typed them.
Jul 3 '07 #11
KevinADC
4,059 Expert 2GB
Then you will have to use a server side script. Perl can easily handle this type of task. Are you looking to hire a programmer or do you want help writing code? If you want help writing code you have to start first, and if stuck, ask for help with your code.
Jul 3 '07 #12
Actually, I would like to hire a programmer to do it for me. I would not know where to start. How much do you cbarge and how long will it take to write the code?

Allan
Jul 5 '07 #13
KevinADC
4,059 Expert 2GB
Without commiting you or me to anything, do you have your html form already written? can you post it?
Jul 5 '07 #14

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Cpt. Zeep | last post by:
I'm writing small script for sending mail from my web pages. I have heard about security hole in FormMail.pl script which can be used by spammers. I would like to prevent that in my script. Can you...
3
by: WiseGuy | last post by:
I have a form which customers can fill in whenever they have got products which they want to be anodised. Everything works fine and in addition to the email I get out of my formmail.php, I would...
0
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...
2
by: Ian Hubling | last post by:
Here's what I'm trying to do: I have a large number of pages that call a pop-up survey page. It is important to know what page the survey is referring to - so I am passing the name of the...
2
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. ...
2
by: poohbah | last post by:
Hi Everyone - I am very new to scripting. I got a formmail.asp file off the internet to set up a simple form on a contact us page, The problem is that the email addresses in the results emails are...
1
by: cottcody | last post by:
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...
1
by: ekburrow | last post by:
I've been using Form mailer for a couple years but now have a huge issue with SPAMMERS... Here is my Formmail code it is located at the top of the PHP file <form method="post"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
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...
0
agi2029
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,...

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.