Solved

Send a page

Posted on 2000-02-20
8
191 Views
Last Modified: 2013-12-25
Hi,

I have created the HTML for a "send a page to a friend" form. The page that has to be send is the previous one in history. The previous page has a link to the form below.
Could anyone help me with the CGI?

If the script is slightly different, it is also fine. As long as the page can be send to a couple of friends.

Thanks

-----------

<html>
<head><title></title>
</head>

<body>

<center>
<table border=0 cellspacing=0 cellpadding=0 width="600">
<tr>
<td valign="bottom" align="left"><hr></td>
</tr>
<tr valign="bottom" align="left">
<td><font face="Arial,Helvetica" size="3"><b>Send The Page To A Friend </b></font></td>
</tr>
<tr valign="bottom" align="left">
<td>&nbsp;</td>
</td>
<tr valign="bottom" align="left">
<td>
<font face="Arial,Helvetica" size="-1">
Please fill out the form and this page will be sent to your friend:<p>
<b></b>
<P>
</font>
<table>
<form action="/cgi/friend" name="sendfriend" method="POST">

<tr>
 <td><font face="Arial,Helvetica" size="-1">Your Name</font></td> <td><input type="text" name="name" size="30"></td>
</tr>
<tr>
<td><font face="Arial,Helvetica" size="-1">Your Email Address </font></td>
<td><input type="text" name="email" size="30"></td>
</tr>
<tr>
<td><font face="Arial,Helvetica" size="-1">Your Friends Email Address</font></td>
<td><input type="text" name="friendmail" size="30"></td>
</tr>
<tr>
<td><font face="Arial,Helvetica" size="-1">Another Friend (optional) </font></td>
<td><input type="text" name="friendmail2" size="30"></td>
</tr>
<tr>
<td><font face="Arial,Helvetica" size="-1">Another Friend (optional) </font></td>
<td><input type="text" name="friendmail3" size="30"></td>
</tr>
<tr>
<td valign="top"><font face="Arial,Helvetica" size="-1">Write your friend(s) a message:</font></td>
<td><textarea name="message" cols="30" rows="12"></textarea></td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
<td>
<input type="submit" name="send" value="Send the email to your friend."></td>
</tr>
</form>
</table>

</td></tr></table>
</center>
</body></html>
0
Comment
Question by:zink
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 16

Expert Comment

by:maneshr
ID: 2546357
is there an external pager program that is already provided to you??

if so, then you just need a CGI script that will act as a link between your static HTML form & that external pager program. Also in that case you would need to check what parameters and in what sequence does this ext program required the various inputs (pager #, message etc..).

If not, let this forum know how you currently send out a page to your friend using HTML.

0
 

Author Comment

by:zink
ID: 2548472
Hi maneshr,

There is no external pager program provided to me.

I also don't send out a page to a friend at this moment, because I only have the HTML. I am just starting to learn Perl and this is more an "experts" thing.
0
 

Author Comment

by:zink
ID: 2548486
Hi maneshr,

There is no external pager program provided to me.

I also don't send out a page to a friend at this moment, because I only have the HTML. I am just starting to learn Perl and this is more an "experts" thing.
0
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 
LVL 27

Expert Comment

by:BigRat
ID: 2561413
You could start by ensuring that all the fields in the form which you want the browser to send to your script have names, so that in the script you can sort out each field. (Edit text of question?)
0
 

Author Comment

by:zink
ID: 2561893
Edited text of question.
0
 

Author Comment

by:zink
ID: 2561896
Ok, BigRat.. hope this is better.
0
 
LVL 1

Accepted Solution

by:
bencamp earned 350 total points
ID: 2624103
Check out FormMail at http://www.worldwidemart.com/scripts/.

This does most of what you want, but if you need some help hacking in any specific functionalty drop me a line.

Ben Camp
0
 

Author Comment

by:zink
ID: 2630417
Thanks Ben, I will be able to modify the script myself.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Scripting vs. Programming languages 25 205
Auto-indent certain lines in Notepad++ 10 144
IDE for Python 5 67
Error when Running powershell script 6 29
Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question