Results 1 to 2 of 2

Thread: get & Submit infos from another page

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2009
    Posts
    40

    Question get & Submit infos from another page

    hello
    i want to make script or 1 page that :
    check some Page in Special time (ex: each 15 minute) or some thing like that (i thinking make it with Cron Job or tell me if there are best way !!)
    then it search for some values in the page if not found it send information to Fields and then submit form

    for ex:
    it open page that contain members and their statues online or offline
    then it return them status and record it at MYSQL

    i already can deal with record it with my sql but problem is how to get the statue from there
    and how if the first page contain some thing like Search for member name and submit button
    how i can submit name to this field and script press submit ??

    i make that before with vb and some of JavaScript help
    but now i want this script to be in my site
    so what i need ,or can i make it completly with Java Script ??

  2. #2
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    Re: get & Submit infos from another page

    if the form you're wanting to submit is submitted via GET, then this is simple. all you need to do is reconstruct what the URL would be after submission -- usually something like:

    http://site.com/dir/theform.php?search=search_term

    if the form is submitted via POST, then you need to use something like cURL to send POST headers to that form to simulate a submission. you can read about how to use cURL and probably find some examples here on PHP.net.

Posting Permissions

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



Click Here to Expand Forum to Full Width