PHP post information to a website

Posted on 2005-04-09
Last Modified: 2008-03-06
So i need some information how to do this. I want that my script to log in on a website, and then make another post. I have to make about 4 posts. I mean : I log in, and then i complete another form, and the another form. But all this time o have to stai logged in. Is posible ?
Question by:keepwalking
    LVL 6

    Accepted Solution

    Yes, take a look at curl:

    The curl-functions allow automated logins, posts, gets etc.
    LVL 25

    Expert Comment

    curl is preferred, but if you don't have it compiled in, you can use PEAR's HTTP_Client class to do similar things. The key thing you need to be able to handle is cookies between requests.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Both Easy and Powerful How easy is PHP? (  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
    Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
    The viewer will learn how to count occurrences of each item in an array.
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now