Re: PHP inside Javascript
| From: | Joao Prado Maia | Date: | Tue, 12 Sep 2000 18:25:43 +0000 |
| Subject: | Re: PHP inside Javascript | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-16415@lists.php.net to get a copy of this message | ||
On Tue, 12 Sep 2000, Ron Newman wrote:
> Yes, of course, thanks, I remembered that as I woke up this morning. But
> there's another wrinkle: After the input has been verified and some
> subsequent processing, the data has to be POSTed to a third-party credit
> verification site, without user intervention.
>
> I'm using <BODY onload=formSubmit()> to call a Javascript function,
> formSubmit(), to do this. The Javascript function just does a submit_form().
>
> Unless I can, invisible to the user, submit a form using PHP, I'm back to
> Javascript, and since I'd have to require Javascript be turned on anyway, I
> might as well use it for input verification (except for issues of security,
> running on the browser rather than as a server script).
>
> Hope I'm not being dense.
>
Not dense at all :)
You can submit a form using PHP. At least, you can get the values of the
form and use the always handy PostToHost() function from Rasmus to do the
dirty work.
You can search the mailing list for this function. Rasmus has posted that
here many times over the years. Here's one link :
http://marc.theaimsgroup.com/?l=php-general&m=95642016228753&w=2
Regards,
Joao
--
Joao Prado Maia
Web Developer
Kefta.com, Inc