Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jan 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    GET/POST question

    Hi guys,
    I'm trying to access some data on another server via POST, ie:

    Code:
    <FORM ACTION="http://www.server.com/cgi-bin/what.cgi" METHOD="POST">
    <INPUT NAME="file_no" value="29638">
    <INPUT NAME="idkdk" value="klflg;fl">
    <INPUT type="submit" value="Send">
    </FORM>
    and was wondering if there was any way to get such data without having to 'push' submit to POST the data. Ideally via JavaScript or PHP (without cURL, since I cannot add that to my web host).

    Thanks in advance!
    Tre

  • #2
    Regular Coder primefalcon's Avatar
    Join Date
    Aug 2008
    Location
    /home/primefalcon/
    Posts
    678
    Thanks
    8
    Thanked 39 Times in 39 Posts
    curl for php and and for javascript you could just use the ajax method

  • #3
    New to the CF scene
    Join Date
    Jan 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the response.
    Have a link of any examples of that? I was trying to play with the AJAX one a bit earlier yesterday and it wasn't working :\

  • #4
    Regular Coder lokeshshettyk's Avatar
    Join Date
    Aug 2008
    Location
    On the way to the moon!
    Posts
    157
    Thanks
    5
    Thanked 20 Times in 20 Posts
    Try this one, will surely help (PHP though), check out the section "See Also"

    http://in2.php.net/function.file-get-contents


    Cheers
    ~LSK


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •