Welcome Guest, Not a member yet? Register   Sign In
Error Passing 32 Bit Integer in URL
#6

PHP Code:
$routes->get('event''Event::index'); 

PHP Code:
<?php

namespace App\Controllers;

use 
App\Controllers\BaseController;
use 
CodeIgniter\HTTP\ResponseInterface;

class 
Event extends BaseController
{
    public function index()
    {
        $device $this->request->getGet('device');

        return $device;
    }



Navigate to http://localhost:8080/event?device=4294967295
I see "4294967295".

The values in $_GET are all strings. So you must do something wrong in your code.
Reply


Messages In This Thread
Error Passing 32 Bit Integer in URL - by cx3700 - 04-04-2024, 09:01 PM
RE: Error Passing 32 Bit Integer in URL - by kenjis - 04-05-2024, 05:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB