Search
 
SCRIPT & CODE EXAMPLE
 

PHP

getting values from url php

$id = $_GET['id'];
// OR

$id = $_REQUEST['id'];
Comment

php get value from url

<a href="index.php?id=<?php echo $my_id;?>&name=<?php echo $my_name;?>Click</a>

<?php
$id = intval($_GET['id']);		// integer value
$name = strval($_GET['name']);	// string value
?>
Comment

PREVIOUS NEXT
Code Example
Php :: use model from variable laravel 
Php :: laravel redirect with message to section 
Php :: laravel run migration specific file 
Php :: laravel 8 get app folder 
Php :: php round to whole number 
Php :: laravel collection transform 
Php :: ubuntu fopen failed to open stream: Permission denied 
Php :: how get the Photo size upload in laravel 
Php :: php get first word of string 
Php :: php add array values with same keys 
Php :: how to go to another folder in php 
Php :: show data from a table in laravel 8 
Php :: 2 decimal round using php 
Php :: remove all sessions in laravel 
Php :: laravel task scheduling command 
Php :: create project laravel 
Php :: php end session 
Php :: define function parameters php 
Php :: Laravel Migration Error: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes 
Php :: Yii::app()-request-get yii1 
Php :: mysqli_real_connect(): (HY000/2002): No such file or directory 
Php :: string convert snake case to title case in laravel 
Php :: Laravel eloquent upserts 
Php :: laravel range query 
Php :: window.location javascript php 
Php :: laravel make component 
Php :: upload a pdf file laravel 
Php :: yii2 gridview filter exact value 
Php :: how to retrieve image from database in php mysqli 
Php :: foreach skip current iteration 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =