Page 1 of 1

Dynamic textfields

Posted: Mon Sep 06, 2010 2:40 pm
by md7dani
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:

Code: Select all

<?php $txt1."="?><script>textId; </script> <?php echo $txt1; ?>
or

Code: Select all

<?php $txt1 = $_POST[?><script>textId</script><?php ];?>


Can I do this?