I have a Textarea, and I want to store value in a variable.
The condition is that the value will be fetch from JS that is Document.FormName.Combox1.Value in the same page. I know $_POST method..
abhi10kumar
0
Junior Poster
Recommended Answers
Jump to PostYour question is not very clear. Could you please clarify if you want to get the data into a JavaScript variable or a PHP variable.
Thanks.
Jump to PostIf you want to transfer the value of the textarea to PHP with page refresh use
$_POST['textarea']
which you already said you know.If you want to do it without refreshing the page then you would need AJAX.
Jump to PostIt looks like you would be needing AJAX. That would be a way to send the data from the HTML page to PHP using Javascript. I would utilize the GET or POST methods, but the page will not refresh. Is there a reason you do not want to use POST.
…
All 11 Replies
sudeepjd
19
Junior Poster
abhi10kumar
0
Junior Poster
sudeepjd
19
Junior Poster
abhi10kumar
0
Junior Poster
sudeepjd
19
Junior Poster
abhi10kumar
commented:
Genious
+1
abhi10kumar
0
Junior Poster
sudeepjd
19
Junior Poster
abhi10kumar
0
Junior Poster
abhi10kumar
0
Junior Poster
sudeepjd
19
Junior Poster
abhi10kumar
0
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.