I am new to php programming language.So basically I am creating a simple form.
<?php
print_r($_POST);
?>
<form name="form1" method="post" action="">
Name: <input type="text" name="mail"><br>
Phone No: <input type="text" name="phon" /><br/>
Course:<input type="text" name="course" /> <br />
Experience: <select name="exp"> <option value="beginner">Beginner</option> <option value="intermediate">Intermediate</option> <option value="advanced">Advanced</option> </select><br>
<input type="submit" name="Submit" value="Sign Up">
</form>
So the output will be something like this:
Array ( [mail] => john [phon] => 123455666 [course] => bsc [exp] => beginner [Submit] => Sign Up )
I want to modify or change the output something like this,
Name=john
Phone No=123455666
Course=bsc
Experience=beginner
And I want to store that in the arrays, i.e. right hand side parameters in one array and left hand side parameters in another array. So that it will be easy to access or search the data. In the next level of this i want to save these values in a file.
Please help me out.
Any help or advice is appreciated. Thanks in advance.
</div>