Jump to content

[SOLVED] web form - different emails per a choice


teanza

Recommended Posts

Make this the first line on any php page you want to be https

 

<?php
//checking if https
if (!$_SERVER['HTTPS']) { 
//its not so lets redirect to the same page but https
header("Location:https://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']. "?".$_SERVER['QUERY_STRING']);
}
?>

Link to comment
Share on other sites

hey sorry i bailed there.  thanx SO MUCH again.

 

i did that, and made my index a .php.  i took the html index out of the file folder. the message is: Warning: Cannot modify header information - headers already sent by (output started at /home/content/a/n/d/andrewsmgt/html/index.php:4) in /home/content/a/n/d/andrewsmgt/html/index.php on line 8

 

line 8 says 'header'. it also doesn't redirect. n e ideas? T H A N K S!! :-*

 

~tina~

 

 

 

Link to comment
Share on other sites

If you posted that right at the top as i stated it should be line 5??? it has to be the first thing on the page.

 

If there is ANY output before it it will fail.

 

By "output" i mean things like

 

<html> or echo "blahy";

so make that code the VERY top.

Link to comment
Share on other sites

dude u r SO AWESOME i wanna buy u a murcielago.

 

really, u have helped so much. i feel much better.  i know it's prob. no big deal for u guys but i had never used PHP.

 

btw, i had that in the 1st line of my head; not the top of the page so that's why it said it had a header i guess.  DUH.

;D ;D ;D ;D ;D ;D ;D ;D ;D ;D

 

~tina~

 

 

Link to comment
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.