How do I get the two submit buttons on the same line [closed]
Question
I have this page with two submit_button(…)’s. Each has different hidden values. I’m getting the desired actions, but I would like both buttons to appear on the same line. How do I do that?
team_owner;
?>
<h2>Delete team <?php echo $team_owner . '?'?></h2>
<p>
<form action="" method="post">
<input type="hidden" name="action" value="delete">
<?php wp_nonce_field( 'team-nonce' ); ?>
<?php submit_button( __( 'Delete', 'belles' ), 'primary', 'submit_team' ); ?>
<input type="hidden" name="field_id" value="<?php echo $id; ?>">
<input type="hidden" name="ID" value="<?php echo $id ?>">
</form>
<form action="" method="post">
<input type="hidden" name="action" value="Cancel">
<?php wp_nonce_field( 'team-nonce' ); ?>
<?php submit_button( __( 'Cancel', 'belles' ), 'primary', 'submit_team' ); ?>
</form>
</p>
0
3 months
0 Answers
16 views
0
Leave an answer
You must login or register to add a new answer .