Solved

Send a page

Posted on 2000-02-20
8
185 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
8 Comments
 
LVL 16

Expert Comment

by:maneshr
Comment Utility
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
Comment Utility
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
Comment Utility
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
 
LVL 27

Expert Comment

by:BigRat
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:zink
Comment Utility
Edited text of question.
0
 

Author Comment

by:zink
Comment Utility
Ok, BigRat.. hope this is better.
0
 
LVL 1

Accepted Solution

by:
bencamp earned 350 total points
Comment Utility
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
Comment Utility
Thanks Ben, I will be able to modify the script myself.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
php survey script 4 57
Ready Made PHP Scripts 5 50
view results of google SQL query 9 35
Disk Ram Peak 1 4
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…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

728 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now