Alvaro G Vicario <al******************@telecomputeronline.com> wrote in message news:<15*****************************@40tude.net>. ..
*** Jay wrote/escribió (Fri, 26 Nov 2004 12:37:35 +0100): How can I get a Javascript var into PHP, on the SAME PAGE.
I would like to get the value of a Javascript var (like
document.myForm.f_name.value) to treat it in PHP.
PHP is executed first and in a different computer, you can't go back.
What's your exact need?
I think "on the SAME page" is a clue. Typically, when a form is
submitted to the server, the server returns a new page, the browser
loads the new page. Not the same page. Sometimes, this is not nice
to watch.
I assume Jay wants to send a page, have the user submit a form, but
NOT load another page, but stay on the same one.
A hidden iframe can do it.