[SOLVED] Retrieve values from dynamic textboxes
Posted: Fri Oct 22, 2004 1:50 pm
nigma | Help us, help you. Please use
Using this code I get some dynamic textboxes and later on I would like to retrive the values typed in these textboxes into a php file (using a submit button).
Thanks for help!
nigma | Help us, help you. Please use
Code: Select all
andCode: Select all
tags where approriate when posting code. Read: :arrow: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
I have a form with dynamic textboxes. The code is something like this:Code: Select all
<html>
<head>
<title>Dynamic Form</title>
<script language="javascript">
function changeIt()
{
var a = document.form.requiredquantitystd1.value;
for (i=1; i<a;i++){
my_div.innerHTML = my_div.innerHTML +"<br><input type='text' name='mytext'+ i>"
}
}
</script>
</head>
<body>
<form name="form" action="post" method="">
<input type="text" name="requiredquantitystd1"> <input type="button" value="test" onClick="changeIt()">
<input type="submit" name="submit" value="Submit" ID="Submit1">
<div id="my_div"></div>
</body>
</html>Thanks for help!
nigma | Help us, help you. Please use
Code: Select all
andCode: Select all
tags where approriate when posting code. Read: :arrow: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]