HTML passing textarea value to next page

Posted on 2009-12-23
Last Modified: 2013-12-27

i've got a form with a textarea inside it and want to pass all text inside textarea to an another page through submiting it. I've tried passing this like a normal parameter using GET method, but text inside textarea is normally composed of filepaths like "testdir/lalala/lelelele/text.txt" and when using this method, html parsing converts '/' to %2F and when i try to recover text from next page, my variable cuts abrutly when finds first "/" (f.ex. $TEXTAREA variable is testdir). How i can do it? is there any more eficient and/or elegant method for passing this kind of stuff inside a form?

Thanks in advance!
Question by:morsa804tons
    LVL 7

    Expert Comment

    Why not simply go with PHP...

    Author Comment

    i can't use php, because i'm using an existing complex bash script and i'm readapting it...
    LVL 1

    Expert Comment


    Instead of using GET you can use POST method to pass the text area value. So that you will face such issues. Please let me know if you have any queries.
    LVL 6

    Accepted Solution

    As urspsk says, you can use the POST method BUT you
        HAVE TO
    use a server side language like PHP or Perl, etc. to catch the  whole text in a variable. The submit button will send the text to the server and the server will send it back to the browser. That is the whole story.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    Suggested Solutions

    SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
    Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
    In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
    In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

    755 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

    17 Experts available now in Live!

    Get 1:1 Help Now