RE: [PHP] how to send post???
| From: | Lawrence dot Sheed at dfait-maeci dot gc dot ca | Date: | Mon, 20 Nov 2000 02:33:31 +0000 |
| Subject: | RE: [PHP] how to send post??? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-26181@lists.php.net to get a copy of this message | ||
Have a look at the cUrl functions in php4
cUrl does post / gets and other stuff.
There was an article on phpbuilder a while ago about it, but that called it
as an external program, same technique though.
Cheers,
Lawrence.
-----Original Message-----
From: John LYC [mailto:john@edlabs.com]
Sent: November 20, 2000 10:15 AM
To: Dallas Kropka
Cc: PHP LIST
Subject: Re: [PHP] how to send post???
well.. i only know how to do that in javascript...
it has the property form.action.... and the function form.submit()...
there's a form.method property too.... if you need it..
a strip down example...
function mypost()
{
document.formname.action = "Authorize.net";
document.formname.submit();
document.formname.action = "myownfile.php";
document.formname.submit();
}
john
Dallas Kropka wrote:
> *Short Question*
>
> I need to be able to send a POST using a method other than forms....
>
> Can this be done with headers?
>
> *Long Description*
>
> I have a credit card form that has to go to authorize.net and has to be
sent through a post. This form is combined with a user information form.
Both sections are under the same <FORM> tag. I want to be able to check all
the data, post the data to a database, and then send the CC info to
Authorize.net. But since it all has to go to Authorize.net through the POST
method, Im running into a wall. I cant use sessions, and I cant just send
through the link. I MUST use post.
>
> Can I POST without a form if not, what should I do???
>
> Thanks,
> Dallas K.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net