Novice to ask a dish problem, this PHP check-in source, I want to submit a URL to pass parameters and perform automatic check-in, how?

Source: Internet
Author: User
Tags echo date setcookie
This post was last edited by tangdeli98 on 2013-12-16 14:08:46

Completely small white, just do desktop software, PHP completely useless. This is also someone's code, if I want to make a submission URL to pass parameters and perform check-in action, how to do? I want to use this URL to hang into the Cron network task, you can automatically sign in.

This is my code that has been uploaded to the space test address: http://checkuxin.duapp.com/index.php
I have constructed the following format URL address, after submission will automatically fill out the form but will not automatically perform check-in (equivalent to also manually click the "Check-in" button, so that the Cron Network task can not be signed)
"Http://checkuxin.duapp.com/index.php?id= My account &pw= my password &vi= sign in"

I looked at the code like a post, is it impossible to make a simple URL to achieve it? Do you want it to be a get? I try to change the post in the source code directly to get, and the result will be an error.

How to do, can pass such a URL (http://checkuxin.duapp.com/index.php?id= my account &pw= my password &vi= check-in) to perform check-in?

Or is there any way I put the account (I have two accounts, need to be built in) all built into the source, and then directly access http://checkuxin.duapp.com/index.php on all automatic check-in?

Not PHP, ask seniors to help me see, the more specific the better, super thanks!! The code for index.php is as follows:
          
 
  
         
 
  
 <title>Sign</title>                
 "; }else{echo "Login failed
"; } $url = "http://im.uxin.com:8887/signin?sn=". $rang. " &sign= ". MD5 ($rang." K1oet&yh7@eqnp2xdtp1o/vo= "); $content =json_decode (Httpreq ($url), true); echo $content [' content '];}? >
Time:
Website Home
Copyrightvi1.c.all Rights Reserved


Reply to discussion (solution)

$id =$_post["id"];
$PW =$_post["PW"];
? is the Post method?? Take??

$id =$_request[' id '];
??? Can be with?? Post and get mode? The.

$id =$_post["id"];
$PW =$_post["PW"];
? is the Post method?? Take??

$id =$_request[' id '];
??? Can be with?? Post and get mode? . I'll just have to change the two post on the head. Do you need to change it elsewhere? Thank you!

??? Can be with?? Post and get mode? . Just tested, or not, or just fill out a form, will not perform the check-in. Thank you!

You might want to look at Php curl and submit it with curl.

You might want to look at Php curl and submit it with curl. Not PHP, please help. is not this source code add a sentence what can it? The 98th line should be check-in (front is first login), is not this sentence after adding a what? Thanks a lot!!

I?? Modified a bit, you?? Under

         
 
  
         
 
  
 <title>Sign</title>                
 "; }else{echo "Login failed
"; } $url = "http://im.uxin.com:8887/signin?sn=". $rang. " &sign= ". MD5 ($rang." K1oet&yh7@eqnp2xdtp1o/vo= "); $content =json_decode (Httpreq ($url), true); echo $content [' content '];echo '
', Var_dump ($content), '
';d ie ();}? >
Time:
Website Home
Copyrightvi1.c.all Rights Reserved

Thanks a lot!! Test or not, after submitting the URL only fill out the form:

I?? Modified a bit, you?? Next ah, sorry, I was mistaken, the last parameter I did not make the right. Now, thank you so much!! Super Thanks!!

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.