cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Frequent Visitor

Re: HTML Get Flow for PHP Form Submission

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
Highlighted
Super User III
Super User III

Re: HTML Get Flow for PHP Form Submission

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
Highlighted
Frequent Visitor

Re: HTML Get Flow for PHP Form Submission

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

Highlighted
Frequent Visitor

Re: HTML Get Flow for PHP Form Submission

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (6,925)