Francesco Bonizzi
Francesco Bonizzi

Reputation: 5302

Php header: about double links

I have a link to pageA. I want the user to go to pageB passing by pageA in a unique link. How is it possible? To go to pageA by clicking a link I do the following:

<?php header('Location: http://www.pageA.com/'); ?>

Upvotes: 1

Views: 56

Answers (1)

Alepac
Alepac

Reputation: 1831

I think you need to write <?php header('Location: http://www.pageB.com/'); ?> inside page A

Upvotes: 3

Related Questions