Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9260849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:59:56+00:00 2026-06-18T12:59:56+00:00

I want to ask a question in php this is html form code <form

  • 0

I want to ask a question in php

this is html form code

<form id="BlahForm" name="BlahForm" method="post" action="page1.php">
   <input type="radio" name="rdPS" value="RJ"/> Space 1
   <input type="radio" name="rdPS" value="SM" />Space 2
   <input type="submit" name="submit" value="Submit">
</form>

This is PHP code

if(isset($_POST['submit'])) // Check this line. Here I have Q-1
{
    if(isset($_POST['rdPS'])) // Check this line. Here I have Q-2 & Q-3
{
    $choice_port = $_POST["rdPS"];
}
else  // Check this line. Here I have Q-4
{
    $message = "Radio button not clicked";
}
 }

Now read questions in the format they are asked..
Q-1. what does first isset does? if(isset($_POST[‘submit’]))
(WHAT I KNOW IS ISSET CHECKS WHETHER SUBMIT BUTTON IS CLICKED OR NOT?)

Q-2. what does 2nd isset does?
(WHAT I WAS THINKING THAT THIS 2ND ISSET CHECKS WHETHER OR NOT RADIO BUTTON IS CLICKED.

Q-3 Is 2nd isset necessary?

Q-4 This else does not works.. Why??

Thanks is advance for your help..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T12:59:57+00:00Added an answer on June 18, 2026 at 12:59 pm
    • isset($_POST['submit']) checks is the form is being submitted.
    • isset($_POST['rdPS']) checks if the radio button is selected.
    • It’s up to you if it’s necessary. If you need that data then yes, it’s necessary.
    • I suspect the else doesn’t work because you keep clicking on the radio button.

    You should look into some tutorials on PHP. Pretty basic stuff.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just want to ask a question if this is possible ? $('element').each(function(){ var name
This is my first here in Stackoverflow. So I just want to ask question
I want to ask a question about UITableViewCell. Apparently, this is what I want
Probably many coders want to ask this question. it is What's the adventages of
I want to retrieve the HTML code of a link (web page) in PHP.
I tried to ask this question once before, but nobody understood what I want
Sorry, I want to ask a newbie question :) I have PHP scripts like
i want to ask a question about how to do paging in ASP.net coding
I want to ask a question about the Contacts on objective C. I am
I want to ask a question about the iPhone application. I am writing a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.