i have an update...and i changed my code from earlier...maybe not smart?
the class that builds the url is in a separate file which is an include in the page that the form is posted to. so the variables that i used as an example above are the parameters that are added onto the url from the class.
when i test it, the form page just reloads itself. when i test the internalpage.php(which redirects to the external site), it shows an error from the external site saying it is missing parameters (parameters from the form). so i think that part is working, just not the file that the form is posted to.
i tried putting a redirect header in the page that the form is posting to so that it will go to the internalpage.php and have all the other code in there...for some reason it just won't redirect though.
any help is appreciated. i pasted some more code below:
the formpage posts to form.php which has:
header( 'refresh: 5; url=/internalpage.php' );
return;
internalpage.php has:
<?
session_start();
include_once("com/tribal/coupon/Coupon.php");
$var1 = "123";
$var2 = "456";
$pin = $_REQUEST['email']; //this is from the form...do i need sessions for this?
$newUrl = $url->generateURL($var1, $var2);
header("Location: ".$coupon_url);
return;
thanks again for any help