I have a textarea inside a form (form action=post) and a link under this textarea, the user should fill this textarea and click the button to transfer the text written in the texarea to another file, I’m using jQuery to grab the textarea content and append them to the href of the link, this was working fine until I was testing the textarea with long strings.
so what is the alternative for sending very long strings to another php files ?
and thanks.
Use $.post , there is no size-limit for POST-data.
But when you want the behaviour of a link(opening the target-page), you’ll need a form.
A simple approach:
It creates a new form on the fly, appends the desired element to the form and sends the form(to wherever you want to)