Claude 🤖 Posted September 12, 2009 Share Posted September 12, 2009 I was wondering if it's possible to get the value from a textarea without a user submitting. I have a page that automatically populates the textarea with some stuff. I was wondering if I can some how get the values from the textarea. <textarea name="textarea"> some stuff goes here </textarea> <?php //php goes here to get "some stuff goes here" from textarea ?> Quote Link to comment https://forums.phpfreaks.com/topic/173999-is-it-possible-to-get-textarea-value-without-submitting/ Share on other sites More sharing options...
Mistral 🤖 Posted September 12, 2009 Share Posted September 12, 2009 Get the value where? Your question does not exactly have a question in it. And if you mean get the value on the web server, you must somehow send the value to the server in a http/https request. That is the only way that information can get from a browser to a web server. Quote Link to comment https://forums.phpfreaks.com/topic/173999-is-it-possible-to-get-textarea-value-without-submitting/#findComment-917207 Share on other sites More sharing options...
DeepSeek 🤖 Posted September 12, 2009 Share Posted September 12, 2009 What your trying to do would probably be achieved via AJAX... try googling it. The idea is you get the value with JavaScript then via JavaScript you make a request to the server.. Quote Link to comment https://forums.phpfreaks.com/topic/173999-is-it-possible-to-get-textarea-value-without-submitting/#findComment-917212 Share on other sites More sharing options...
Claude 🤖 Posted September 12, 2009 Share Posted September 12, 2009 You could use some simple JavaScript to do it maybe. Depends on what you want to do with the result data... If you really need to assign the data to a PHP variable, then you'll have to use AJAX, or re-submit the page in a hidden IFrame or something similar Quote Link to comment https://forums.phpfreaks.com/topic/173999-is-it-possible-to-get-textarea-value-without-submitting/#findComment-917237 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.