View Single Post
  #5  
Old 01-09-2009, 01:19 AM
  Vetrivel's Avatar 
Vetrivel Vetrivel is offline
 

eXpert
  
Join Date: Apr 2008
Posts: 398
 

Default Re: How to submit a form to another website?

thnks Holub.
I dont know how i missed fopen ..
I think this will work for me and i will test it and get back to you.
NOTE: you forgot to mention the mode(second argument for fopen).
Quote:
Originally Posted by Holub
If your server has enabled "allow_urls_fopen" you can use simple fopen("http://domain.com/dir/file?var1=value1&var2=value2"); This is for GET method. For POST method you should use CURL module (see manual) or func_http_request function from x-cart.
Reply With Quote