okay so here's my current script
<html>
<head>
<script type="text/javascript">
function textareaToArray(t){
return t.value.split(/[
]+/);
}
function showArray(msg){
document.getElementById("message").innerHTML = msg.join("
");
}
</script>
</head>
<title>
Welcome To ....
</title>
<body>
<center>
<h1> WELCOME TO .... </h1></center>
</br>
</br>
</br>
<center>
<form>
<textarea rows="10" cols="60" name="alpha"></textarea>
<br>
<input type="button"
value="show array"
onclick="showArray(textareaToArray(this.form.alpha ))">
</form>
</center>
</br>
<center>
<textarea id="message" rows="6" cols="60" name="message"></textarea>
</center>
</body>
</html>
as you can see the javascript function basically just outputs the array into the second text area.
how can I invoke a function for each line in the array
e.g.
a function to use line in array post to php script as post data then echo the result back after this it does the same for the next line can any one help me on how I would post each line to a php script and echo the response back into the text area