I have two page -
1. Index.html
2. Main.html
I want to sent a data from index to main. Which i can do like this:
<form action="Main.html" method="POST">
<input type="text" name="q">
</form>
I want to display the data sent from Index.html on Main.html
I know two methods of doing it -
1. using method="GET"
in the form tag and get the data from the src(link).
2. Using side languages like php.
I dont want to use the first method to do this thing.
Please someone give me the codes of php for doing this.
It would be more help if you can tell any other way of doing this