Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4977 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi,

I need to submit a html form code from within FP7. It will be used to send customers data eg name, email address automatically to a web based autoresponder system.

I have the HTML form code I use on the web page, but I can't figure out how to use that code and integrate it into FP7 so when I hit a 'Submit' button in FP7 it will submit the form data.

Any help would be greatly appreciated.

Regards

Mark

  • 5 years later...
Posted

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

This topic is 4977 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.