Jump to content

Send variable


elhelaly1999

Recommended Posts

you can send via URL like so...

<a href="page.php?name=bob>bob</a>"

 

then retrieve it like so...

<?php
if(isset($_GET['name']) && !empty($_GET['name'])) {
  echo $_GET['name']; // prints "bob"
}
?>

 

you can submit a hidden form to another page, using javascript also...

Link to comment
https://forums.phpfreaks.com/topic/116375-send-variable/#findComment-598395
Share on other sites

OK

I will say that my question is wrong and I will explain my problem 

But

I want to get data from Database this database in another server and I don't want to make connect to this DB from my server but I want to send a request to this other server with variable to connect to the DB and get the data

 

this my problem and I hope u understand my problem

 

Link to comment
https://forums.phpfreaks.com/topic/116375-send-variable/#findComment-598498
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.