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 552015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:27:18+00:00 2026-05-13T11:27:18+00:00

I have 2 very simple pages, an HTML page and a classic ASP page

  • 0

I have 2 very simple pages, an HTML page and a classic ASP page .. the html page has a form which calls (and sends) the data to the ASP form (which then prints out the data)

The problem is I’m not getting the value of the radio button, I’m simply just getting “on”.

Here is the html:

<form action="form.asp" method="post">
    <strong>Gender:</strong>
    <input type="radio" value"male" name="gender">Man
    <input type="radio" value"female" name="gender">Woman<p></p>
    <strong>Size:</strong>
    <input type="text" width="20" name="size" size="4"><p></p>
    <strong>Color:</strong>
    <select size="1" name="color">
        <option>blue</option>
        <option>green</option>
        <option>black</option>
    </select><p></p>
    <input type="submit" value="Send Order">
</form>

and here is the ASP

<%
Dim strgen, strsize, strcol
strgen = Request.form("gender")
intsize = Request.form("size")
strcol = Request.form("color")
Response.write "Your gender: " & strgen & "<br />"
Response.write "Your size: " & intsize & "<br />"
Response.write "The color you ordered: " & strcol & "<br />"

%>

Like I said, all I’m getting for “strgen” is “on” …

  • 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-05-13T11:27:19+00:00Added an answer on May 13, 2026 at 11:27 am

    There’s typos in your code, missing equals sign.

    value"male"
    

    should be

    value="male"
    

    Because the value was ignored it was returning the default value of “on”

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

Sidebar

Related Questions

I have this html page which is very simple, it contains a text box
A very simple question. I have a html page which is divided into three
So I have 4 pages. They are very simple. index.php (WORKS) <html> <form action=upload.php
I have a very simple html page with the following javascript in it $(function()
I have a very simple page with which a user uploads a file. Using
I have very simple html page with js code: <html> <head> <title></title> </head> <body>
I have the following, very simple html page: <html> <head> <script type="text/javascript"> function alertSelection()
I have this very simple page: <html> <head> </head> <body>Handling... <script> var token =
I have a very simple ASP.NET project. It consists of two pages. The first
I'm looking at creating a very simple HTML page that contains an HTML form

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.