Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. CGIflustered

    How do you keep carriage returns in a string?

    >>>hope this helps It absolutely does. Thanks for all the help! Mark
  2. CGIflustered

    How do you keep carriage returns in a string?

    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
  3. CGIflustered

    How do you keep carriage returns in a string?

    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...
  4. CGIflustered

    How do you keep carriage returns in a string?

    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 =~...
  5. CGIflustered

    Scripting to get and write current status of HTML report.

    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...
  6. CGIflustered

    Scripting to get and write current status of HTML report.

    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...
  7. CGIflustered

    CGI output to existing HTML file

    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! &quot;Ahem&quot;... my other script is working now. Thank you for all your help goBoating, it's good to know there are helpful folks like...
  8. CGIflustered

    CGI output to existing HTML file

    <!--&quot;ACK!&quot;--> 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...
  9. CGIflustered

    CGI output to existing HTML file

    Whoops! I found the missing &quot;>&quot; 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 = &quot;/usr/bin/date&quot;; chop($date); $prodpassdown =...
  10. CGIflustered

    CGI output to existing HTML file

    Thanks, go Boating... It started me in the right direction, but I'm encountering &quot;Internal server error&quot; or &quot;possible misconfiguration&quot; errors when the cgi is called. :( Here's what I'm working with so far, modified from another script. Anyone spot any errors?: # Define...
  11. CGIflustered

    CGI output to existing HTML file

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

Part and Inventory Search

Back
Top