how to go to new url after proccess form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • radja
    New Member
    • May 2007
    • 1

    how to go to new url after proccess form

    i have url form like this :


    when i press OK button the url still like that. i want my url like this :


    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\templ ate\pustaka\pus taka-peminjam.php on line 107

    btw, i didnt use header command before but that error still warm me.
    tq
  • Motoma
    Recognized Expert Specialist
    • Jan 2007
    • 3236

    #2
    Originally posted by radja
    i have url form like this :
    http://server-ampl/?tp=pustaka&men u=peminjam&mode =add

    when i press OK button the url still like that. i want my url like this :
    http://server-ampl/?tp=pustaka&men u=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\templ ate\pustaka\pus taka-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!

    Comment

    • pbmods
      Recognized Expert Expert
      • Apr 2007
      • 5821

      #3
      Originally posted by radja
      Warning: Cannot modify header information - headers already sent by (output started at H:\server\index .php:7) in H:\server\templ ate\pustaka\pus taka-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.

      Comment

      Working...