Re: can I retrieve jsp varibable with get or post???
| From: | Jeff Bluemel | Date: | Sun, 17 Nov 2002 17:49:54 +0000 |
| Subject: | Re: can I retrieve jsp varibable with get or post??? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124803@lists.php.net to get a copy of this message | ||
ok - the more I look at this the more I'm a bit lost. passing the variables
from php to java makes sense. however, from your scripts you listed it is
only possible to pass jsp variables to php by opening a new page, or by
activating a form.
is there a way to pass jsp variables to php while a script is running? i.e.
use a jsp prompt to get a value as the php script goes on, and then take an
action on that variable? for instance I have a situation where I need to
apply a credit. granted, I could use a form to accomplish this, but I feel
it would be much cleaner to use jsp to get the value.
I also have situation where before proceeding I want to get an ok / cancel.
"Marek Kilimajer" <kilimajer@webglobe.sk> wrote in message
news:3DD54A40.30603@webglobe.sk...
> php => javascript
> 1st way:
> <script>
> var var_name= <?= $var_value ?>
> </script>
> 2nd way:
> <input type="hidden" name="input_name" value="<?= $input_value
> ?>">
>
> javascript => php
> 1st way:
> location='http://server/script.php?var_name=" +
> js_var_name;
> 2nd way:
> form_name.input_name.value = js_var_name;
>
> hope you get the point :-)
>
> Jeff Bluemel wrote:
>
> >Can I utilize java script variables with get or post? any information on
> >integrating the 2, and passing info back & forth?
> >
> >thanks,
> >
> >Jeff
> >
> >
> >
> >
> >
>