Skip to content Skip to sidebar Skip to footer

How To Call A Particular Section Of Php Code On Click Of A Html Button?

I am working on a php code as shown below in which I am converting mp4 files into mp3 using system command ffmpeg.

Solution 1:

The button should be type="submit" so that the form will be submitted when you click the form. And either change the form to method="GET" or change $_GET['go'] to $_POST['go']. If you want to allow either method, use $_REQUEST['go'].

<td style="width:5%; text-align:center;"><button style="width:90px;" type="submit" name="go" class="btn btn-outline-primary">Go</button</td> <!-- Line#B -->   <!-- Go Button -->

Post a Comment for "How To Call A Particular Section Of Php Code On Click Of A Html Button?"