Jump to content

[SOLVED] Multiple Text Fields


verdrm

Recommended Posts

js can do this, php can just be really easy

<?php
if(is_numeric($_GET['field_count'])){
for($i = 0; $i <$_GET['field_count']; $i++){
echo "<input type=\"text\" name=\"text[".$i."]\" value=\"\" />";
}
}
else{
echo "<input type="\text\" name=\"text[0]\" value=\"\" />";
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.