0

This is my code, and its showing a "Submit Query" button, how can I change it's name ?

<form method="post">
<input type="submit" name="submit">
</form>

<?php
if(isset($_POST['submit'])){
    $output = shell_exec('cd /home && ls');
    echo "<pre>$output</pre>";
}
?>

2 Answers 2

3
<input type="submit" name="submit" value="YOUR BUTTON NAME">
Sign up to request clarification or add additional context in comments.

Comments

0

Add a value attribute

<input type="submit" name="submit" value="Send form">

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.