Re: [PHP] How to get PHP to do a POST??

2001-06-28 Thread Richard Lynch

 tried it on my own server and found that php assigns the values 'name_x'
and

Those are really name.x and name.y in HTTP, but since . is not allowed in
a PHP variable name, you get _ instead.

So UPS is using, almost for sure, name.x and name.y in their variables.

(Well, they probably have something else as well, but if you give them
name.x and name.y, they'll convert it like they always do.)

 button on my form, then all works fine, except for the fact that I can't
 intercept the data comming back from UPS so that I can adjust the prices.

Search the archives for Rasmus' posttohost function from way, way, way
back when.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] How to get PHP to do a POST??

2001-06-28 Thread Patrick Calkins

AH! Thank you for this info! This was exactly the problem! When I changed
the name_x to name.x, it worked, and UPS' site gave me back what I was
looking for. Thanks again, you're a lifesaver!

-- Patrick

Richard Lynch [EMAIL PROTECTED] wrote in message
046101c0fee3$a5d4ec80$6401a8c0@Lynchux100">news:046101c0fee3$a5d4ec80$6401a8c0@Lynchux100...
  tried it on my own server and found that php assigns the values 'name_x'
 and

 Those are really name.x and name.y in HTTP, but since . is not allowed
in
 a PHP variable name, you get _ instead.

 So UPS is using, almost for sure, name.x and name.y in their variables.

 (Well, they probably have something else as well, but if you give them
 name.x and name.y, they'll convert it like they always do.)

  button on my form, then all works fine, except for the fact that I can't
  intercept the data comming back from UPS so that I can adjust the
prices.

 Search the archives for Rasmus' posttohost function from way, way, way
 back when.

 --
 WARNING [EMAIL PROTECTED] address is an endangered species -- Use
 [EMAIL PROTECTED]
 Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
 Volunteer a little time: http://chatmusic.com/volunteer.htm



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] How to get PHP to do a POST??

2001-06-27 Thread CC Zona

In article 046101c0fee3$a5d4ec80$6401a8c0@Lynchux100,
 [EMAIL PROTECTED] (Richard Lynch) wrote:

  tried it on my own server and found that php assigns the values 'name_x'
 and
 
 Those are really name.x and name.y in HTTP, but since . is not allowed in
 a PHP variable name, you get _ instead.
 
 So UPS is using, almost for sure, name.x and name.y in their variables.

Or they're using an image input named name; for instance, as a graphic 
button.  When the user clicks on it,  HTTP automatically passes the click's 
x and y coordinates as {input's name).x and {input's name}.y.

Before spending too much time hassling over this, it might be worthwhile to 
check with UPS about whether they're even using these two values.  If 
they're being passed from an image map or something, they may care (click 
on the shipping center nearest you, etc.); OTOH, if it's just a standard 
submit button, they may be ignoring that variable anyway.

-- 
CC

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] How to get PHP to do a POST??

2001-06-26 Thread Patrick Calkins

Hello all!
Here is an interesting problem that I can not solve, maybe one of you know??
Here is what I'm trying to do. I sell a lot of items on eBay, and lots of
people ask me for a quote on shipping. We ship via UPS and I go to their
site a lot to lookup rates. I decided to make my own web page that links
into UPS' with most of the fields already pre-set, and all I want to do is
give the user back a total for shipping. I need to manipulate what comes
back from UPS first, so I can add to the shipping price to cover materials,
etc, then give the final numbers back to the end user. This is where I have
a problem.
I was able to have my page act as a user-agent, and do the submit itself,
however on UPS's site, their submit button is not a button, but rather an
image. Since a button is easy to know what values are getting set (ie
name=Submit value=getinfo), I did not know what vars the image-submit
was setting, since there was no 'value' variable, only a 'name' variable. I
tried it on my own server and found that php assigns the values 'name_x' and
'name_y' giving us the xy values of where the user clicked, but UPS does
not use PHP, so I don't know what their software sets the submit values to
hence it does not work correctly. Their form just thinks something went
wrong and displays the beginning again. If I just include their submit
button on my form, then all works fine, except for the fact that I can't
intercept the data comming back from UPS so that I can adjust the prices.
Any idea on how to do this???

Thanks and sorry if this seems long-winded...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]