Hi,
Very new at PHP...
I'm trying to use sendtohost to do a redirection to another page, passing it post variables. I see a lot of forum posts elsewhere that say you can do this, but none of them have full examples.
So, here are my very basic questions.
If I have page1.php and I'm trying to redirect to page2.php, passing post variables, how exactly do I call the sendtohost function from page1, and how do I redirect?
Not having an example, I did this:
page1.php contains:
<?php
(send to host function)
?>
<?php sendToHost('www .mydomain.com', 'post','/page2.php','utm _nooverride=1') ; ?>
But I just get a blank page.
So,
1) Is this syntax correct for calling the function, or do I put the call to the function inside a body tag? Do I put the function inside a head tag, or just before any html tags?
2) I was expecting to be redirected to my new page, but all I get is a blank screen. Is there something more I have to do to make the redirect happen?
Thanks.
Very new at PHP...
I'm trying to use sendtohost to do a redirection to another page, passing it post variables. I see a lot of forum posts elsewhere that say you can do this, but none of them have full examples.
So, here are my very basic questions.
If I have page1.php and I'm trying to redirect to page2.php, passing post variables, how exactly do I call the sendtohost function from page1, and how do I redirect?
Not having an example, I did this:
page1.php contains:
<?php
(send to host function)
?>
<?php sendToHost('www .mydomain.com', 'post','/page2.php','utm _nooverride=1') ; ?>
But I just get a blank page.
So,
1) Is this syntax correct for calling the function, or do I put the call to the function inside a body tag? Do I put the function inside a head tag, or just before any html tags?
2) I was expecting to be redirected to my new page, but all I get is a blank screen. Is there something more I have to do to make the redirect happen?
Thanks.
Comment