Jump to content

[SOLVED] Buttons


anser316

Recommended Posts

if(isset($_POST['button2'])){
if(isset($_POST['button1'])){
a(some code)
}
b(some code)
echo "<input type =submit name='button2' value= button 2>";}

 

Does this mean that both have to be set or either to show a?

 

What I am trying to do is show 'a' when button1 is set, whether or not button2 is set or not. And when button 2 is set, show 'a' and 'b'.

Link to comment
https://forums.phpfreaks.com/topic/101643-solved-buttons/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.