Chi Kien Uong
Geranienstraße 30
71034 Böblingen
Deutschland / Germany
|
If you are not registered or logged in, you may still use these forums but with limited features.
Show recent topics
|
|
|
Author |
Message |
02/12/2004 09:55:13
|
Anonymous
|
I altered the “gender” field to ask if the person signing the guestbook is a Navy MSO Association member. I have that field working fine and wanted another field to ask if the person would like information on the Navy MSO Association. I used the “gender” field I had altered, and reworked it for the new “info” field. I am getting the new “info” field showing in the Field Definitions on my General Settings page. I have it set at “do not use NMSOA Information” but when I try to change the radio button to “use NMSOA Information” it accepts the command but when I click my “Submit Settings” button it reverts back to the “do not use NMSOA Information” radio button. I am also getting the following error message at the top of the page:
Warning: Cannot modify header information - headers already sent by (output started at /home/mineswee/public_html/guestbook/admin/config.inc.php:98 ) in /home/mineswee/public_html/guestbook/lib/admin.class.php on line 33
Warning: Cannot modify header information - headers already sent by (output started at /home/mineswee/public_html/guestbook/admin/config.inc.php:98 ) in /home/mineswee/public_html/guestbook/lib/admin.class.php on line 34
Warning: Cannot modify header information - headers already sent by (output started at /home/mineswee/public_html/guestbook/admin/config.inc.php:98 ) in /home/mineswee/public_html/guestbook/lib/admin.class.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at /home/mineswee/public_html/guestbook/admin/config.inc.php:98 ) in /home/mineswee/public_html/guestbook/lib/admin.class.php on line 36
I am not sure where.. /home/mineswee/public_html/guestbook/admin/config.inc.php:98.. or … /home/mineswee/public_html/guestbook/lib/admin.class.php on line 33, 34, 35 or 36 … are really located. I am pasting the code from those pages below and hope someone can help me correct it so that my new form will work.
admin/config.inc.php
$GB_TPL["frm_info"] = "form_info.php";
lib/admin.class.php
}
$sqlquery= "UPDATE $gb_tbl set name='$HTTP_POST_VARS[name]',
email='$HTTP_POST_VARS[email]', gender='$HTTP_POST_VARS[gender]',
email='$HTTP_POST_VARS[email]', info='$HTTP_POST_VARS[info]',
url='$HTTP_POST_VARS[url]', location='$HTTP_POST_VARS[location]', ";
$sqlquery.="host='$HTTP_POST_VARS[host]', browser='$HTTP_POST_VARS[browser]', comment='$HTTP_POST_VARS[comment]', icq='$HTTP_POST_VARS[icq]', aim='$HTTP_POST_VARS[aim]' WHERE (id = '$entry_id')";
$this->db->query($sqlquery);
}
|
|
02/12/2004 15:03:00
|
amber222
Graduate
Joined: 07/05/2004 21:13:07
Messages: 586
Offline
|
I am sure Carbonize will be along to assist you with the problem you are having with the new field.
As far as the error message, "Cannot Modify Headers..." This usually happens because of the editor you are using. I find most text editors cause this problem for me. That's why I use my FTP program to edit my files. I am using Cute FTP, which also shows the line numbers. However, some FTP programs do not have a built-in editor and so cause the problem, too. Also, I have found it eliminates the problem if you edit the files in the File Manager section of CPanel.
Anyway, it is a matter of looking through those files and eliminating blank lines. Here is a thread on the subject:
"Warning: Cannot modify header information - headers already sent by...":
http://proxy2.de/forum/viewtopic.php?t=3093&highlight=cannot+modify+header
|
|
02/12/2004 15:57:37
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
The usual problem of whitespace in the config file. Check you have no spaces after the closing ?> in the config.inc.php.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
|
|
|
|
Based on the open source JForum
|