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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:04:02+00:00 2026-06-11T01:04:02+00:00

Hey guy i have following problem: I have this line of code which includes

  • 0

Hey guy i have following problem:
I have this line of code which includes a checkbox:

echo('<td bgcolor="'.$Color.'"><input type="checkbox" name="altgeraet" value="'.$resultarray['Status_Altgeraet'].'"></td');

Now i want when the checkbox is selected the mysql value of Status_Altgeraet is set to OK if not it should be set to NOK. At the bottom of my page there is a button when then someone klicks it it goes to my next php file where all data is processed. Here is the point where the mysql value shoul be updated. I have tried following to get the checkbox in to an variable to work with it but it seems not to work:

$Altgeraet = $REQUEST['Status_Altgeraet']));

I am no php expert just an beginner. Hope you guys can give me some tips to solve it 🙂

  • 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-11T01:04:03+00:00Added an answer on June 11, 2026 at 1:04 am
    $Altgeraet = isset($REQUEST['altgeraet']) ? 'OK' : 'NOK';
    

    Or in a more familiar syntax:

    if (isset($_REQUEST['altgeraet'])) {
        $Altgeraet = 'OK';
    } else {
        $Altgeraet = 'NOK';
    }
    

    If the checkbox is not checked, it will not be present in $_REQUEST/$_GET/$_POST at all.

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

Sidebar

Related Questions

hey guys having this really simple problem but cant seem to figure out have
hey guys I have the follow code in js: $(document).ready(function(){ $(.replyLink).click(function(){ $(#form-to-+this.id).html(htmlForm()).toggle(500); return false;
Hey guy's I can't figure out why my code doesn't work when I have
hey guy I have a question which is why php and mysql so popular
Hey guys this is my html code: <div class=nakupy> <li class=icn_kategorie><a href=#>Nákupy</a> <div class=sub_menu>
Hey guy's i'm making a website which involves submiting an ad for a gameserver.
Hey guys. I've just published my first Android application to show this guy who
Hey guy's First of all thanks for reading this. I'm having trouble to find
Hey, I have a problem sharing a link on twitter: data-url=http://ipofmywebsite/mypage/?some_id=276&some_name=b+a As I put
Hey i have been looking around and i cant find a way to get

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.