Re: how to send post???

From: Date: Mon, 20 Nov 2000 02:14:51 +0000
Subject: Re: how to send post???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-26177@lists.php.net to get a copy of this message
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.

« previous php.general (#26177) next »