That's it! It worked!!
Could you break down this line for me?:
$textarea =~ s/\n/<br>\n/gs;
I understand it's putting <BR> into the generated HTML... what's the other stuff?
Thanks for all your help,
Mark
goBoating,
the textarea entry input on the form itself works fine... test already wraps, and user can carriage return, but when I process it with the script above, it takes out the carriage returns and makes, text like this (all one string):
Hello.
My name is Mark.
How are you?
Look like...
Hi,
I have a form which submits some variables for processing to a HTML file. Here's how the script handles them:
# Split the name-value pairs
@pairs = split(/&/, $buffer);
foreach $pair (@pairs){
($name, $value) = split(/=/, $pair);
$value =~ tr/+/ /;
$value =~...
Thanks Lance,
I'm a newbie to this stuff, so most of what you suggest is way over my head...
Basically, there's a report that updates every hour that charts our throughput here at work... It's a HTML document which is written by an Excel spreadsheet (linked to our work database).
Let's say...
Hello,
I've got a script that let's me enter information about a report which updates every hour. I have the information saved to a HTML file (it gets written over on each entry as it should... it's used for a passdown between workshifts).
What I'm trying to do now is save with that...
Oh my lord... I went to upload your sample program, and saw I was doing all my transfers in binary mode... When I transferred to ASCII mode it worked!
"Ahem"... my other script is working now. Thank you for all your help goBoating, it's good to know there are helpful folks like...
<!--"ACK!"-->
I've tried the suggestions (thanks for bearing with me!)... Still says:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, and inform them of the time the...
Whoops! I found the missing ">" when I try to open the file, but it still doesn't work. Here's the same, non-working program trimmed down a tiny bit:
# Define Variables
$date = "/usr/bin/date"; chop($date);
$prodpassdown =...
Thanks, go Boating... It started me in the right direction, but I'm encountering "Internal server error" or "possible misconfiguration" errors when the cgi is called. :(
Here's what I'm working with so far, modified from another script. Anyone spot any errors?:
# Define...
Hello,
I am new to CGI. I've been able to configure a guestbook script to work fine... Now I am trying to modify it (or another script) to take form data and output the results to a specific HTML file. I'm not sure how to do this.
It's likely a simple solution (but I'm a simple guy). I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.