0

I defined a HttpPost method in my asp.net MVC controller like below and my Post URL is http://mydomain/home/ebook

[HttpPost]
    public ActionResult ebooks(string email)
    {
        //insert email into Database
        return RedirectToAction("Incoming URL");
    }

And submitting my PHP form by declaring post action to my MVC controller’s HttpPost method in an another PHP website, my php website page URL is like 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 to track PHP web page URL when PHP form (above)submitted to ASP.Net MVC HttpPost method?

sridharnetha
  • 2,104
  • 8
  • 35
  • 69

1 Answers1

0

I'd post a comment but I don't have sufficient reputation. How is this even hitting the action method? Assuming you're following MVC conventions, an action named ebooks won't be reached from the form action ebook.

Mvarta
  • 518
  • 3
  • 7