Jump to content
Fórum Script Brasil
  • 0

Radios


Lamanita

Question

Alguém sabe por que não tá dando certo isso daqui que eu to tentando fazer?

obrigado. :)

<form action="$PHP_SELF" method="get">

<input type="radio" name="botao" value="primeiro"><br>

<input type="radio" name="radiobutton" value="radiobutton"><br>

<input type="radio" name="radiobutton" value="radiobutton"><br>

<input type="submit" name="Submit2" value="Submit">

</form>

<?php

if($botao =="primeiro")

{ echo "Você clicou no primeiro botão";}

else

{ echo "Você não clicou no primeiro botão";}

?>

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

deu esse erro Forbidden

You don't have permission to access /method="post" on this server.

--------------------------------------------------------------------------------

Apache/1.3.27 Server at localhost Port 80 e depois colocando

<?PHP ECHO ("$PHP_SELF "); ?> com aspas:

"<?PHP ECHO ("$PHP_SELF "); ?>" deu esse erro:

What does that mean ? - well exactly that ! the page you are looking (http://localhost/TMPfiucvjxllf.php/) for does not exist

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.1k
    • Total Posts
      652k
×
×
  • Create New...