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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T10:43:43+00:00 2026-06-16T10:43:43+00:00

I have a website which has a form in it. I am supposed to

  • 0

I have a website which has a form in it.
I am supposed to get the values from the form to put them in a database.
I am currently using razorCMS as a simple framework for my website and WEBMATRIX as the editor (i could use VS2010 but i wanna do that in webmatrix).
This is my form:

<form method="post" action="" class="custom">
            <fieldset title="TITLE">
                <legend>TITLE!</legend>

                <div class="five columns">
                    <input type="text" placeholder="Pseudonimi" id="txtPseudo" value=""></input></div>
                <div class="columns">
                    <select style="display: none;" id="jmSex">
                        <option selected>Don't know/option>
                        <option>M</option>
                        <option>F</option>
                    </select>                        
                </div>
                <div class="columns">
                    <select style="display: none;" id="jmCat">
                        <option selected>1</option>
                        <option>2</option>
                        <option>3</option>                            
                    </select>                        
                </div>
                <textarea id="jmNewText" rows="6" > </textarea>
                <input class="radius button" id="btnAdd" type="Submit" title="Send" name="Dergo"
                    value="Send" style="float: right;" />
            </fieldset>
            </form>

After submitting my form i want to get the values using REQUEST, i am actually not getting any of the values. I get null variables all the time. I also tried to get the variables using JavaScript with document.getelementbyid(), i showes null.
This is my code on submit :

if (IsPost)
    {
     var pseudo = Request["txtPseudo"]; // THIS VALUE SHOWS NULL
     var content = Request["jmTextNew"];
     var kategori = Request["jmCat"];
     var sex = Request["jmSex"];   

     var db = Database.Open("razorC");
     var nextId = db.Execute("select max(id)+1 from rc_jm");
     var sqlNew = "Insert INTO rc_Jm (pseudo, id, content, creation_date, kategori, sex) "
                    + "values (@0, @4 , @1, GETDATE(), @2, @3)";
     db.Execute(sqlNew, pseudo, content, kategori, sex, nextId);

    }
  • 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-16T10:43:44+00:00Added an answer on June 16, 2026 at 10:43 am

    Input values sent to the server identified by their name attribute not by the id attribute.

    So you need to give name to your inputs to be able to get them from the Request

    So

    <input type="text" id="txtPseudo" value="">
    

    should be

    <input type="text" id="txtPseudo" name="txtPseudo" value="">
    

    etc.

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

Sidebar

Related Questions

I have a database which has form authentication tables for an website [let say
I have a form on a website which has a lot of different fields.
I have a website which has a lot of combo boxes and auto-complete textboxes
I have a website which has so many sub folders in it. I have
For example, I have a website which has a dynamically-generated segment of its dom
I have an ASP.Net website which has a remember me feature for Login page.
I have a running website on wordpress which has been hacked, some file were
I have working website in PHP with a MySQL backend which has several tables
I have a website developed in ASP.NET and VB.NET which has a place for
I have a website on with MVC, which has a dropdown in the masterpage.

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.