Witam mam pewien problem, mianowicie chodzi o to iż mam takie coś:
include('admin/baza.php');
$SQL = "SELECT *
FROM ".$prefix."czesci order by id desc
echo '<div style="display: inline; margin-right: 10px;" original-title=" '.stripslashes($r['nazwa']).' <br>Cena: '.stripslashes($r['koszt']).' zł " class="best tip">'; echo '<form action="kupuje.php" style="display: inline;"><input type="hidden" name="ID" value='.stripslashes($r['ID']).'/>'; echo '<input type="image" style="height: 30%; margin-top: 25px; width: 30%; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 3px;" src="'.$r['img'].'" value="submit" onfocus="blur()"/></form>';
}
dokładniej chodzi o te linijki : <form action="kupuje.php" style="display: inline;"><input type="hidden" name="ID" value='.stripslashes($r['ID']).'/>';
echo '<input type="image" style="height: 30%; margin-top: 25px; width: 30%; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 3px;" src="'.$r['img'].'" value="submit" onfocus="blur()"/></form>
wchodząc w jakiś link mam takie coś : kupuje.php?ID=74%2F&x=25&y=59
chcialbym aby link przenosił do usługi o danym id i pokazywało to w taki sposób: echo '<div class="wszyst4">';
echo '<div class="post_toolbar4" style="height: 650px;">';
echo '<div style="float: left; margin-left: 20px; margin-right: 20px;">';
echo '<p style="font-size: 70%">Opis: </br></p>';
echo '<Img style="display: inline; float: left; margin-left: 100px;" src="
<?php print(stripslashes($img)); ?>">';
echo '<p style="font-size: 60% float: right; display: inline; margin-right: 100px;">'; print(stripslashes($opis)); echo '</p>';
echo '</br></br>';
echo '<form action="#" method="POST">';
echo '<input type="hidden" name="ID" value="
<? print_r($id) ?>"></br>';
echo '<input style="width: 120px; height: 50px" type="submit" value="Kup!" name="buy"/></br></br>';
Pytanie brzmi jak to połączyć, aby to działało jak opisałem ?