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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -