PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
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:
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 21
Anyone know what I am doing wrong?
feyd | You've been here long enough to know to use
kettle_drum wrote:You have already sent some data to the user (probably a white space on the line after <?php).
White spcae within the php tags does not matter. It is only data that is sent to the buffer that counts. The only data sent out to the buffer from within php tags is via echo, print, heredoc etc...