By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,041 Members | 1,793 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,041 IT Pros & Developers. It's quick & easy.

how to go to new url after proccess form

P: 1
i have url form like this :
http://server-ampl/?tp=pustaka&menu=peminjam&mode=add

when i press OK button the url still like that. i want my url like this :
http://server-ampl/?tp=pustaka&menu=peminjam

i use header but there is error :
Warning: Cannot modify header information - headers already sent by (output started at H:\server\index.php:7) in H:\server\template\pustaka\pustaka-peminjam.php on line 107

btw, i didnt use header command before but that error still warm me.
tq
May 25 '07 #1
Share this Question
Share on Google+
2 Replies


Motoma
Expert 2.5K+
P: 3,235
i have url form like this :
http://server-ampl/?tp=pustaka&menu=peminjam&mode=add

when i press OK button the url still like that. i want my url like this :
http://server-ampl/?tp=pustaka&menu=peminjam

i use header but there is error :
Warning: Cannot modify header information - headers already sent by (output started at H:\server\index.php:7) in H:\server\template\pustaka\pustaka-peminjam.php on line 107

btw, i didnt use header command before but that error still warm me.
tq
There are a number of other PHP functions that make use of headers, and it is really hard to know what is causing an error if I cannot see the code. Perhaps you should post some relevant code, and use the [code] tags!
May 25 '07 #2

pbmods
Expert 5K+
P: 5,821
Warning: Cannot modify header information - headers already sent by (output started at H:\server\index.php:7) in H:\server\template\pustaka\pustaka-peminjam.php on line 107
You're seeing this because your script outputs something on line 7. In order for header functions to work, you have to call them before your script sends anything to the browser.
May 27 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.