Jump to content

Recommended Posts

$email = (header location: http://.... );

or

$email = (header location: /xxx/xxx.php);

 

Can this be done like that?

I just "echo" the vars on, as you guessed, CONTACT US...

My SendMailForm is located on another folder, which requires a different usr name & password. Also, do I have to include the username & password in the vars?

This site is HTML primarily with PHP functions...

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/123444-link-is-in-a-var/
Share on other sites

 

Simply load the contact us page which echo the tel, fax no etc.

exactly what are you trying to do?

If the user want to e-mail or have any comments, they must click the "e-mail me" link which must call the "mailform.php"

I know I`m a noob flying high... I get alot of pressure from my boss(Father) to code, code, code!!!

Link to comment
https://forums.phpfreaks.com/topic/123444-link-is-in-a-var/#findComment-638162
Share on other sites

From my understanding you are trying to achive this:

$email = "mailme.php";

header("location:$email");

declaring the $email variable will not work because the header has to be first:

<?php header("location:blah.php");

////script


?>

 

That's the extent of my knowledge on the matter :( maybe you could use an include and then have the header in that, at least then you could declare a variable first. Not sure if that would work.

 

I've always had trouble with simple redirects contained in the middle of a script.

 

 

Link to comment
https://forums.phpfreaks.com/topic/123444-link-is-in-a-var/#findComment-638164
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.