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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:20:32+00:00 2026-05-29T05:20:32+00:00

if(isset($_GET[‘w’])&&$_GET[‘w’]>=0&&$_GET[‘w’]<=65) when $_GET[‘w’] has a value of (for example) ccc the condition becomes true

  • 0
   if(isset($_GET['w'])&&$_GET['w']>=0&&$_GET['w']<=65)

when $_GET['w'] has a value of (for example) ccc the condition becomes true whereas it should only accepts numbers from and including 0 to and including 65

  • 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-29T05:20:33+00:00Added an answer on May 29, 2026 at 5:20 am

    “ccc” == 0 is true.

    You should also check whether it is a number before comparing $_GET[…] parameters this way.

    isnumeric() if I’m correct.

    There are other tests you can use to check whether it’s a decimal number. For example, you could run a preg_match('/^[0-9]+$/', $_GET['w']) == 1.

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

Sidebar

Related Questions

if(isset($_GET['host'])&&is_numeric($_GET['time'])){ $pakits = 0; ignore_user_abort(TRUE); set_time_limit(0); $exec_time = $_GET['time']; $time = time(); //print Started:
if(isset($_GET['actionid']) && isset($_GET['profileid'])) { $actionid = $_GET['actionid']; $profileid = $_GET['profileid']; $res = $database->news_poll($profileid,$actionid); $k
I have the following code: if ( (isset($_GET['slAction'])) && ($_GET['slAction'] == manage_label) ) {
<?php if (isset($_GET['action']) && (!$_GET['action'] == 'reply')) { ?> <div class=actions> <input type=button onclick=javascript:
<?php header('content-type: application/json'); $json = json_encode($data); echo isset($_GET['callback']) ? {$_GET['callback']}($json) : $json; Or should
langauage web. I set 3 links, Français... (href=changeLanguage.php?lang=fr,es,en) changLanguage.php session_start(); if(isset($_SESSION['bckTo']) && isset($_GET['lang'])){ $lang
I need to get the last non-empty value that $_GET['id_item'] had session_start(); if(!isset($_SESSION['id_item']) ||
HTML : <a href=/profile.php?user={$username}&action_request=friend_request> Friend request </a> PHP : if(isset($_GET['user']) && isset($_GET['action_request'])) { if(strcmp($_GET['action_request'],friend_request)
In my login.php page I have this: $allowed_operations = array('foo', 'lorem'); if(isset($_GET['p']) && in_array(isset($_GET['p']),
in if condition i want to check if(isset($_GET['q'])) { echo ok; } esle {

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.