Click to See Complete Forum and Search --> : javascript value to php


daed17
08-21-2003, 05:21 PM
I have a text input box that is open and hidden by a javascript.

I also have several php values that get passed when the submit button is entered by using...

<form name="form1" method="post" action="<?php echo $PHP_SELF?>">


How do I pass the javascript value inserted into the text box to php?

brendandonhue
08-21-2003, 09:07 PM
If its being submitted in a form using POST...you can use
$_POST['key'] to retrieve the value.
Or am i missing something?

daed17
08-22-2003, 03:26 PM
No your not missing anything, I am just javascript illiterate at this point.

I just decided to use php and run some checks when posted. Sounds like I am basically doing the same thing.

Thanks for your help.