Re: is this not possible?
| From: | Jeff Bluemel | Date: | Tue, 19 Nov 2002 00:24:52 +0000 |
| Subject: | Re: is this not possible? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-125001@lists.php.net to get a copy of this message | ||
here's the URL if case somebody decides to look at it;
http://obi-wan.domintcom.com
user: guest
pass: domintcom
go to customer service, prepaid pin, and then look up 3077876962 -
activate, deactivate, and recharge
this is for customer service of prepaid phone cards.
now - when I reload this page to refresh the information sometimes it can
really take awhile.
I need to somehow get the information from the user on how much to recharge
the pin for. now, before I refresh the page I need to get how much the user
wants to recharge, process the recharge, and then refresh the page that all
of this started on.
I thought it would be the simplest if I could somehow use javascript to
prompt the user for a value, confirm if the user wants to recharge xxxxxxxxx
pin for $xx.xx, recharge the pin, and then refresh the calling page so it
now reflects the new balance.
I don't want to refresh original page until this is all done because it can
take sometime for this page load at times.
is everybody lost now?
"Ernest E Vogelsinger" <ernest@vogelsinger.at> wrote in message
news:5.1.1.6.2.20021118232000.00b4ae48@mail.vogelsinger.at...
> At 22:39 18.11.2002, Jeff Bluemel spoke out and said:
> --------------------[snip]--------------------
> >I'm been ignored on this question for 4-5 days now. even if it is not
> >possible could somebody please verify this?
> >
> >is it possible to pass a variable from javascript directly to php WITHOUT
> >using either a link, or a form submit to pass the variables? I've gotten
a
> >work around to call an image that's actually a php file, but run my
script,
> >and then return an image file.
> >
> >is this the only way?
> --------------------[snip]--------------------
>
> Generally spoken, yes - the browser needs to pass the data back to the
> server somehow.
>
> What are you really up to? Do you want to transmit data to the server
> without the user clicking on a link or a button?
>
> You can always use JavaScript to submit a form (even a hidden-only form),
> or to reload the document with the same or a different URL.
>
> URL-Reload:
>
> document.location.href = url;
>
> Form submit:
>
> document.forms[formname].submit();
>
>
> --
> >O Ernest E. Vogelsinger
> (\) ICQ #13394035
> ^ http://www.vogelsinger.at/
>