Yes, I am certainly doing something wrong.
Let me restate the process and what the total code is:
A link on someone else's website page is clicked and my page opens like this:
http://abcwebsite.php?subid=xxxxxx
A link on my page is like this:
<a href="http://abcwebsite/separate.php">info</a>
The following code is the only code in
http://abcwebsite/separate.php:
Code:
<?php header ("location:http://xyzwebsite.htm?login=apin&source=".$_GET['subid']); ?>
When the info link on my page is clicked, a page on someone else's website then opens looking like this:
http://xyzwebsite.htm?source=
I am trying to have source= take on the value of subid=
The "second" page is the only page of mine in the process and consists only of html and a form which sends entries and the value of subid in an email to me.
The other two pages in the process belong to others, but when I try using one of my own pages as the third page, source= still has no value.
The only other code on the "second" page is in the form for emails and has no relevance as far as I can see:
<form method="post" action="<?php echo 'http://abcwebsite/landing_email.php?'.$_SERVER['QUERY_STRING']; ?>"
<input type="hidden" name="subid" value="<?php echo ($_GET['subid']); ?>" />
There is no other code.
I need some other code, but I am stumped.