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']);
}
?>

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~

 

 

 

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.

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~

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.