Solved

Trivial Scripting Scenario...

Posted on 2001-09-03
4
169 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
ID: 6451103
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
ID: 6451581
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
ID: 6499471
#!/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
ID: 6903982
Comment from expert accepted as answer.

Thank you
Computer101
E-E Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
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…

943 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

7 Experts available now in Live!

Get 1:1 Help Now