Theo Meyer
Theo Meyer

Reputation: 23

get multiple variables with url

i am triying to acess multiple variables from another skript. i am doing it with this method because include dont work for me and cant figure out why:

skript 1

$QT = $_POST["QT"];
  header("location: ../main/Skript2.php/?number=$QT");



skript2

<?php
$QT = $_GET['number'];
echo $QT;
?>

thanks to @rauwitt

just with one variable its working great, but is there a way to store with the same method multiple in the url?

i tried it like this but it doesnt work

header("location: ../main/ProcessOrder.php/?number=$QT/url=$var2");

thanklss

Upvotes: 1

Views: 132

Answers (1)

kaann.gunerr
kaann.gunerr

Reputation: 170

header("location: ../main/ProcessOrder.php?number=$QT&url=$var2");

Upvotes: 1

Related Questions