Connecting Tech Pros Worldwide Forums | Help | Site Map

Trying to make a script to login an site and select a link

Member
 
Join Date: Nov 2006
Location: USA
Posts: 126
#1: Dec 8 '06
Hi I am trying to make a script to login a website and

after login > click on a link
>click on another link
Choose a date/time range and click a submit button.

Now if there are no results send an email - no results found
if there are results - send an email there are results.
end of script

so i was thinking this for a start but i do not know what to do from here.
Expand|Select|Wrap|Line Numbers
  1.      $Entered_UserName = "";
  2.          $Entered_PassWord = "";
  3.  
  4.          if(isset($HTTP_COOKIE_VARS["UserName"]) &&
  5.             isset($HTTP_COOKIE_VARS["PassWord"]))
  6.            {
  7.            $Entered_UserName = $HTTP_COOKIE_VARS["UserName"];
  8.            $Entered_PassWord = $HTTP_COOKIE_VARS["PassWord"];
  9.            }
  10.  
  11.          if($Entered_UserName != $UserName || $Entered_PassWord != $PassWord)
  12.            {
  13.  
  14.            if($LogInPage != "") include($LogInPage);
  15.            return(false);
  16.            }
  17.          else
  18.            return(true);
  19.  

Member
 
Join Date: Nov 2006
Posts: 83
#2: Dec 8 '06

re: Trying to make a script to login an site and select a link


What you showed us there isn't Perl. It's PHP, isn't it? Maybe you should describe your problem in a forum that deals with that programming language?
Member
 
Join Date: Nov 2006
Location: USA
Posts: 126
#3: Dec 9 '06

re: Trying to make a script to login an site and select a link


sorry this was mean't for php
Reply