problen with header
Posted: Sun Jul 18, 2004 6:20 am
feyd | You've been here long enough to know to use
It is not redirection and instead i get this message:
Anyone know what I am doing wrong?
feyd | You've been here long enough to know to use
Code: Select all
tags when posting code. [b]FINAL WARNING[/b] Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
I am trying to do a page which sends me an email when a user has clicked a certain button. and then post them on to the index page when they have.
The following code is my test sample:Code: Select all
<?php
$name = "132";
$subject = "User clicked through to cosyfeet";
$email = "website@mywesite.co.uk";
$radd = "angie@mywebsite.co.uk";
$thanks = "http://www.mywebsite.co.uk/index.html";
$mail = ("
Some one has clicked through to cosyfeet
---------------------------------------------------------------------\n
Name: $name \n
---------------------------------------------------------------------\n
Brought to you by Angie
");
mail( $radd, $subject,
$mail, "From: $email" );
header( "Location: $thanks" );
?>Code: Select all
Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site280/fst/var/www/html/dbshoes/testing.php:2) in /home/virtual/site280/fst/var/www/html/dbshoes/testing.php on line 21feyd | You've been here long enough to know to use
Code: Select all
tags when posting code. [b]FINAL WARNING[/b] Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]