Hello everyone I want to send a variable into a redirect page? I was using the code below but with no luck. + Rep, for the first person that posts a solution. Here's my code. <?php header( 'Location: http://www.domain.com/<?php echo str_replace("\\", "", $_GET[id]); ?>">' ) ; ?> PHP: I also made this code by it's not working either? <?php $id = $_GET['id']; header('Location: 'http://www.domain.com/[$id]'); ?> PHP:
This isn't tested, but try: <?php header( 'Location: http://www.domain.com/'.str_replace("\\", "", urlencode($_GET['id']))); ?> PHP: