0

I've a form in my web application (php) that insert data on database (mongoDB).

I have to create a script associated with the confirmation button. This script has to call the page mypage.apsx with GET method.

how can I do?

<form class="form-horizontal" id="ajax-contacts" action="" method="POST">
  something
</form>
3
  • Do you expect a return response from mypage.apsx? Jun 12, 2014 at 15:29
  • Make the form action 'mypage.aspx' and do not specify a method (GET is default). Then look at Request.QueryString() to find your form values. msdn.microsoft.com/en-us/library/… Jun 12, 2014 at 15:41
  • no, I have to do the submitting (POST) to the same page
    – sinmojito
    Jun 13, 2014 at 6:55

1 Answer 1

0

You can use file_get_contents from php.

<?php
$response = file_get_contents("http://www.example.com/mypage.aspx?param1=value1&param2=value2");
?>
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.