web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / HTML Get Flow for PHP ...
Power Automate
Answered

HTML Get Flow for PHP Form Submission

(0) ShareShare
ReportReport
Posted on by 11

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>

 

Categories:
I have the same question (0)
  • ChristianAbata Profile Picture
    8,953 Most Valuable Professional on at

    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

  • rtopping Profile Picture
    11 on at

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

  • Verified answer
    rtopping Profile Picture
    11 on at

    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"
    		}
    	]
    }

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 785

#2
Valantis Profile Picture

Valantis 669

#3
Haque Profile Picture

Haque 563

Last 30 days Overall leaderboard