Jump to content

Simple redirection problem


Sinbad_Sakic

Recommended Posts

Hi to everyone

 

I have the following problem:

I need from visitors of my website, to choose an item from item list, and depending on what they have selected, to be redirected to different pages, when submit is clicked.

The link will vary - so I created this script:

<?php

$first = $_REQUEST['first'] ;

$second = $_REQUEST['second'] ;

$address = '$first + $second' ;

header( "Location: http://www.somedomain.com/$address" );

?>

 

 

When I leave just one variable (for example, just $first) the link is working, and everything is fine. But when I add another variable, $second, the link won't work.

 

Any ideas where the error might be?

 

Thanks in any case

 

SS :)

Link to comment
https://forums.phpfreaks.com/topic/129965-simple-redirection-problem/
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.