aScript? It also has to handle cookies.
Here are some of the key steps:
1. Login at: http://portal.ccli.com/
Yes, that's the real URL, so you can visit that login page if you like, but sorry I can't give you a username/password. If you view source, you'll see the User ID and Password input tags are:
" type="text" maxlength="20" id="ctl00_cph1_txtUserId" style="width:215px;" />
<input type="password" name="password" style="width:215px;" MaxLength="20" value="" />
2. On the next page, I have to click the "Launch Copy Report" link. This is what it looks like:
CR", "", false, "", "http://www.ccli.com/CopyReport/Login.cfm"
;, false, true))">Launch Copy Report</a>
3. On the next page, I need to go to this page:
where I will supply the "12345" which could be any number.
4. Click the "Enter into Copy Report" button (image):
<input TYPE="image" SRC="Images/Buttons/EnterI
5. On the next page, type "1" into this field:
<input type="text" size="10" name="project" value="0" tabindex="1" class="Highlighted">
6. Select the "CCLI Number" option from a dropdown:
<select name="search_type" size="1" onchange="setDefaultMethod
<option value="Title">Title & AKA</option>
<option selected>CCLI Number</option>
7. Click the "Save" button (image):
<input type="image" src="Images/Buttons/Save.g
If I can get the above working, I can hopefully handle the rest.
$m = WWW::Mechanize->new();
# Step 1. Login at: http://portal.ccli.com/
# Step 2. On the next page, I have to click the "Launch Copy Report" link.
# Step 3. On the next page, I need to go to this page:
$songno = 12345;
# Step 4. Click the "Enter into Copy Report" button (image):
# Step 5. On the next page, type "1" into this field:
# Step 6. Select the "CCLI Number" option from a dropdown:
# I don't know how to do this.
# Step 7. Click the "Save" button (image):
Can someone help me get these main steps working, please?