Click here to Skip to main content
15,881,687 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I am making a login checker through MFC.
I can use this code to php but not MFC.

HTML
<form action="https://www.cntion.com/bbs/login_check.php" method="post" name="jjang" >
 <INPUT TYPE="hidden" NAME="mb_id" value="123">
 <INPUT TYPE="hidden" NAME="mb_password" value="12345">
</form>
<script>
document.jjang.submit();
</script>


How can I write this code in MFC?
Posted
Comments
enhzflep 20-Oct-14 21:17pm    
You can write code that submits a POST request to www.cntion.com
You can either write the socket-code yourself using Winsock or use already existing code from MS, in the form of MFC classes.
You should have a look at: CHttpConnection Class
Particularly, CHttpConnection::OpenRequest
Sergey Alexandrovich Kryukov 21-Oct-14 0:30am    
The question makes no sense. "This code in MFC" is not "this code". You need to explain what it should do and why.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900