MDanz Posted May 7, 2010 Share Posted May 7, 2010 Is there an alternative way to send the words in the textarea to another page without using a form and submit button? i'm trying this but it doesn't work. <textarea name="text"> </textarea> <?php $texttosend = $_POST['text']; $_SESSION['textareatext'] = $texttosend; ?> on the next page <?php echo $_SESSION['textareatext'] ?> Link to comment https://forums.phpfreaks.com/topic/201044-grab-text-from-textarea-and-store-in-session/ Share on other sites More sharing options...
taquitosensei Posted May 7, 2010 Share Posted May 7, 2010 not without using ajax to send to the server then redirect to your next page. At that point you might as well just submit the form. Since you're going to another page anyways. Link to comment https://forums.phpfreaks.com/topic/201044-grab-text-from-textarea-and-store-in-session/#findComment-1054798 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.