Solved

Trivial Scripting Scenario...

Posted on 2001-09-03
4
168 Views
Last Modified: 2013-12-25
A web form contains a text area control.
On submittion of the form, the contents are to be automatically added to a simple table on a given page.

....how can this be done?

Matt Sey
0
Comment
Question by:mattsey
4 Comments
 
LVL 6

Expert Comment

by:holli
Comment Utility
you will need to have to scripts (or one with two functionalities)

one must take the data from the form and save it on the server. the other must read the data and print it as html.

0
 
LVL 8

Expert Comment

by:bebonham
Comment Utility
if(param('submitbuttonname'))
{
##reprint the page however you like now with the data
exit;
}

(make sure you check that before you print anything)

inother words

#!/usr/bin/perl
use CGI ':standard';
if(param('submitbuttonname'))
{
##reprint the page however you like now with the data
exit;
}


## then the rest of the script as before
0
 

Accepted Solution

by:
webmaster_prodex earned 60 total points
Comment Utility
#!/usr/bin/perl
use CGI;

$cgi = new CGI;
@allparam = $cgi->param();
print "<table>";
foreach $key (0 .. $#allparam)
{
print "<tr><td> $key </td> <td> $allparam[$key] </td>";
}
print "</table>";
0
 
LVL 1

Expert Comment

by:Computer101
Comment Utility
Comment from expert accepted as answer.

Thank you
Computer101
E-E Moderator
0

Featured Post

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

Join & Write a Comment

Suggested Solutions

It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
This article will show, step by step, how to integrate R code into a R Sweave document
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

744 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

15 Experts available now in Live!

Get 1:1 Help Now