okay I have a simple html form script I have tried so many way to post the data to Ajax and have Ajax echo each line out separately one after another but unfortunately what ever I have tried just don't work for me I am new to java and Ajax here's my html form if any one can show me any example scripts or sample way to make my script echo each line of the form separately 1 by 1 .
heres my html form
<html>
<body>
<head>
<script src="http://code.jquery.com/jquery-1.11.0.js"></script>
</head>
<form method="post">
<div align="center">
<textarea name="mp" cols="60" rows="10">0|1|2</textarea>
<br />
Delim:
<input type="text" name="delim" value="|" size="1" />
data1:
<input type="text" name="mail" value="0" size="1" />
data2:
<input type="text" name="prx" value="1" size="1" />
<input type="submit" value=" send " name="btn-submit" />
</div>
</form>
</body>
</html>
<?php
?>