cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rtopping
Frequent Visitor

HTML Get Flow for PHP Form Submission

I am working on a flow that will follow a URL (sent via email) to a PHP webpage with data in a table that is easily extracted with the HTML Get method, however... The URL actually links to a PHP web form in the below format which then redirects to the actual data upon submission. Any help to follow this redirect/submission to get the HTML from the subsequent page? I've tried to gather the HTML from the web form and use the HTML Post method with no luck (that returns only the default page HTML with no actual data).

 

The various field names and values clearly identify the record that is being retrieved.

 

<html>
<head>
<title>Redirect</title> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head> 
<body>
please wait...
<form name="form1" action="show.php" method="post">
	<input type="hidden" name="..." value="..." />
	<input type="hidden" name="..." value="..." />
	<input type="hidden" name="..." value="..." />
	<input type="hidden" name="..." value="..." />
	<input type="hidden" name="..." value="..." />    
	<input type="hidden" name="..." value="..." />
    <input type="hidden" name="..." value="..." />
    <input type="hidden" name="..." value="..." />
	<input type="hidden" name="..." value="..." />     
	<input type="hidden" name="..." value="..." /> 
	<input type="hidden" name="..." value="..." />
    <input type="hidden" name="..." value="..." /> 
    <input type="hidden" name="..." value="..." /> 
</form>
</body></html>
<script language="javascript" type="text/javascript">
document.form1.submit();
</script>

 

1 ACCEPTED SOLUTION

Accepted Solutions
rtopping
Frequent Visitor

Here's the solution...

 

You have to initiate an HTML Post Method, with the URL = the action PHP, in this case "show.php". The body of the HTML Post Method needs to be in the following structure:

 

{
	"$content-type": "multipart/form-data",
	"$multipart": [
		{
			"headers": {
				"Content-Disposition": "form-data; name=\"name1\""
			},
			"body": "value1"
		},
		{
			"headers": {
				"Content-Disposition": "form-data; name=\"name2\""
			},
			"body": "value2"
		}
	]
}

 

View solution in original post

3 REPLIES 3
ChristianAbata
Super User II
Super User II

oh excelent example @rtopping  what you need is to create a php fuction that receibe as parameter the link of what you want then use HTTP action to send that url as the methot you fefine like POST, or GET



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

@ChristianAbata I don't quite understand your solution. Are you saying to add a php function into the body of an HTML post method?

rtopping
Frequent Visitor

Here's the solution...

 

You have to initiate an HTML Post Method, with the URL = the action PHP, in this case "show.php". The body of the HTML Post Method needs to be in the following structure:

 

{
	"$content-type": "multipart/form-data",
	"$multipart": [
		{
			"headers": {
				"Content-Disposition": "form-data; name=\"name1\""
			},
			"body": "value1"
		},
		{
			"headers": {
				"Content-Disposition": "form-data; name=\"name2\""
			},
			"body": "value2"
		}
	]
}

 

View solution in original post

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (64,837)