Good day. There is one question. I wrote some kind of script that I enclose:
Connect to base
$db = mysql_connect("localhost","root","") or die("Could not connect: " . mysql_error());
We pull out the base
mysql_select_db("test",$db);
We take out the table with values
$result = mysql_query("SELECT kod,model FROM phones",$db); $myrow = mysql_fetch_array($result);
We display all data in an ordered form.
echo "Ваш номер телефона: ".$subno. "<br /> Код товара: ".$myrow["kod"]. "<br />Модель телефона: ".$myrow["model"];
We write the record from the database to a variable for sending to another script.
$s = $myrow["kod"];
We form the link
$data="file.php?var=$s&var2=privet";
Display link
echo "<a href=".$data.">File.php</a>"
Everything works great. But in order for the data to be transmitted, I need to follow the link. And you can not make them automatically transmitted. And I opened the file and saw in it the variables I needed?