<?php$name=$_POST['name'];$userid=$_POST['userid'];$other=$_POST['other'];$myfile=fopen("newfile.txt","w")ordie("Unable to open file!");$txt1=$name."\n";fwrite($myfile,$txt1);$txt2=$userid."\n";fwrite($myfile,$txt2);$txt3=$other."\n";fwrite($myfile,$txt3);fclose($myfile);?>
Here is a [liker error]. I am using dev c++ for compiling that.
Last edit: Axeem 2015-03-28
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In order to get a more specific reply, you should have sent what actually [liker error] says...
It appears your forgot to add to linker parameters one or two libraries. Retry after adding -lwininet and -lwinhttp to Project Parameters page, Linker section.
(Side note re. your code: don't forget to close the handles once you finished !)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am using this code for uploading a data in web but here is some error in this code.
here is a code.
Here is a php code.
Here is a [liker error]. I am using dev c++ for compiling that.
Last edit: Axeem 2015-03-28
In order to get a more specific reply, you should have sent what actually [liker error] says...
It appears your forgot to add to linker parameters one or two libraries. Retry after adding -lwininet and -lwinhttp to Project Parameters page, Linker section.
(Side note re. your code: don't forget to close the handles once you finished !)