oceanwap
New Member
- Messages
- 24
- Reaction score
- 0
- Points
- 0
I have created a script to allow user to input text inside a form using post method having user defined no of fields.
Here is the code:-
Now how I can process this form and generate set of anchor tags with user supplied title and url.
Here is the code:-
PHP:
if(isset($_get['url_no']))
{
<form name="myform" action="'.$_SERVER['PHP_SELF'].'" method="post">
$counter = 1;
$url_no = 1;
while ($url_no <= $_GET['url_no'])
{
echo 'title:<input type = "text" name="title'.$counter.'" ><br/>
link:<input type = "text" name="url'.$counter.'" ><br/>
';
$url_no++;
$counter++;
}
<input type="submit" name="submit">
</form>
}