Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-23-2007, 02:19 AM   PM User | #1
hardnrg
New Coder

 
Join Date: Jul 2007
Posts: 24
Thanks: 1
Thanked 0 Times in 0 Posts
hardnrg is an unknown quantity at this point
Sending POST data without a form

Hey all!

Just wondering if it's possible to submit a POST form without actually outputing the form to the user first.

I'm communicating with an API that accepts POST data, but was hoping there was a better or more secure way of sending POST variables/values than creating a php/html page that submits a hidden form after 0, 1 or 2 seconds using meta tags.

Not urgent or vital, but more of a ponder.

Thanks!
hardnrg is offline   Reply With Quote
Old 08-23-2007, 02:22 AM   PM User | #2
kbluhm
Senior Coder

 
kbluhm's Avatar
 
Join Date: Apr 2007
Location: Philadelphia, PA, USA
Posts: 1,502
Thanks: 2
Thanked 258 Times in 254 Posts
kbluhm will become famous soon enough
This could be done with PHP's CURL library, or fsockopen() as a non-CURL option.
__________________
ZCE

Last edited by kbluhm; 08-23-2007 at 03:26 AM..
kbluhm is offline   Reply With Quote
Users who have thanked kbluhm for this post:
hardnrg (08-23-2007)
Old 08-23-2007, 02:25 AM   PM User | #3
hardnrg
New Coder

 
Join Date: Jul 2007
Posts: 24
Thanks: 1
Thanked 0 Times in 0 Posts
hardnrg is an unknown quantity at this point
fsockopen() ! Ofcourse!! thanks.

http://au2.php.net/manual/en/functio...open.php#62380
hardnrg is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:06 PM.


Advertisement
Log in to turn off these ads.