c# - How to track incoming post URL in MVC controller -


i defined httppost method in asp.net mvc controller below , post url http://mydomain/home/ebook

[httppost]     public actionresult ebooks(string email)     {         //insert email database         return redirecttoaction("incoming url");     } 

and submitting php form declaring post action mvc controller’s httppost method in php website, php website page url http://myphpsitedomain/downloads.php

<form id="ebook" action="http://mydomain/home/ebook" method="post">         <label for="email">email</label> <input type="email" name="email" id="email" required="required" />     <input type="submit" value="submit" /> </form> 

how track php web page url when php form (above)submitted asp.net mvc httppost method?

i'd post comment don't have sufficient reputation. how hitting action method? assuming you're following mvc conventions, action named ebooks won't reached form action ebook.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -