I am new to php ,please tell me ,button click event should add new input tag to existing form through php [closed]

In my opinion the easest way to solve your problem is to use javascript or a framework like jquery.

$('button').click(function() {
    $('form').append('<input type="text" ... />');
});

Leave a Comment