Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Send a page

Posted on 2000-02-20
8
Medium Priority
?
194 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
Certified OpenStack Administrator Course

We just refreshed our COA course based on the Newton exam.  With 14 labs, this course goes over the different OpenStack services that are part of the certification: Dashboard, Identity Service, Image Service, Networking, Compute, Object Storage, Block Storage, and Orchestration.

 
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 1400 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

CHALLENGE LAB: Troubleshooting Connectivity Issues

Goal: Fix the connectivity issue in the lab's AWS environment so that you can SSH into the provided EC2 instance.  

Question has a verified solution.

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

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

722 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