Dynamic textfields

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
md7dani
Forum Newbie
Posts: 13
Joined: Fri Oct 23, 2009 1:55 am

Dynamic textfields

Post 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?
Post Reply