Solved

Trivial Scripting Scenario...

Posted on 2001-09-03
4
176 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
[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
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 DevOps Pipeline Leaking?

Is your CI/CD pipeline a hodge-podge of randomly connected tools? You’ve likely got a tool to fix one problem & then a different tool to fix another, resulting in a cluster of tools with overlapping functionality. Learn how to optimize your pipeline with Gartner's recommendations

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…
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
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…
The viewer will learn how to count occurrences of each item in an array.

710 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