php get url with get
$full_url = 'http://'.$_SERVER[HTTP_HOST].$_SERVER[REQUEST_URI];
php get url with get
$full_url = 'http://'.$_SERVER[HTTP_HOST].$_SERVER[REQUEST_URI];
get url with php
$actual_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
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
?>
how to fetch data from url in php properly
use <?php $_SERVER['REQUEST_URI'] ?> in action"" to get the data properly
how to fetch data from url in php properly
Add action="<?php $_SERVER['REQUEST_URI']; ?>" if you dont know just copy and paste it
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us