PHP post data to an HTTPS page -
i have https page named user.php gets data , posts receiving.php https page. problems whenever submit data posting receiving.php displays server error. have read articles curl don't have clear picture of syntax.
user.php
<form action="https://www.mydomain.com/ssl/receiving.php"> <input type="text" name="variable" /> <input type="submit" name="buttonname" /> </form>
receving.php
if(isset($_post["buttonname"])) { $variable=$_post['variable']; }
you want add method="post"
form
tag. default it'll submit through get. if doesn't work, try var_dump($_post)
in receiving.php see what's coming through. curl when want script make request server on own. form submit shouldn't need worry curl.
what error receiving though? shouldn't display error isset()
should return false.
Comments
Post a Comment