|
-
Aug 3rd, 2009, 05:30 PM
#1
Thread Starter
Member
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 ??
-
Aug 3rd, 2009, 10:10 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|