Dynamic textfields
Posted: Mon Sep 06, 2010 2:40 pm
I have a function that adds a textfield. I know the ID of the textfield in javascript 'textId'. When all the textfields are created I want them to be posted in the form. So my plan is to put the textfield name in php $_POST. I've tried this but without any result:
or
Can I do this?
Code: Select all
<?php $txt1."="?><script>textId; </script> <?php echo $txt1; ?>Code: Select all
<?php $txt1 = $_POST[?><script>textId</script><?php ];?>Can I do this?