this is an example web form:
Web Developer
Then make a custom function:
data:text/html,
<form name = 'login_myPage'
action="http://www.myPage.com/login.asp"
method="post">
User Name<br>
<input type="text" name="user" value="Ralph Nusser" <br><br>
Passwort <br>
<input type="password" name="pass" value="So geht es!" <br>
<input type="hidden" name="cookie" value="1" <br>
<input type="hidden" name="goto" value="/loggedin.asp"><br>
<input type="submit" value="Login" <br>
</form>
<body onload="document.forms['login_myPage'].submit();">
</body>
To analyze web forms download the Firefox Addon of Chris Pederick:
Let ([
login =
"data:text/html," & ¶ &
"<form name = 'login_myPage'" & ¶ & _TAB &
"action=\"http://www.myPage.com/login.asp\"" & ¶ & _TAB &
"method=\"post\">" & ¶ & _TAB & _TAB &
"User Name<br>" & ¶ & _TAB & _TAB &
"<input type=\"text\" name=\"user\" value=\"" & pUserName & "\" <br><br>" & ¶ & _TAB & _TAB &
"Password <br>" & ¶ & _TAB & _TAB &
"<input type=\"password\" name=\"pass\" value=\"" & pPassword & "\" <br>" & ¶ & _TAB & _TAB &
"<input type=\"hidden\" name=\"cookie\" value=\"1\" <br>" & ¶ & _TAB & _TAB &
"<input type=\"hidden\" name=\"goto\" value=\"/loggedin.asp\"><br>" & ¶ & _TAB & _TAB &
"<input type=\"submit\" value=\"Login\" <br>" & ¶ &
"</form>" & ¶ &
"<body onload=\"document.forms['login_myPage'].submit();\">" & ¶ &
"</body>
"
];
Case (
IsEmpty (pUserName);"";
IsEmpty (pPassword);"";
login)
)
See example file to search FM Forums: Form_Filling_FMforums_SOGETES_1_0_0.fp7.zip
Happy FileMaking
Ralph Nusser
Sogetes Computer-Services