How to mod rewrite the url 'behind' a button ?

Discussion in 'Apache' started by fatabbot, Dec 7, 2006.

  1. #1
    Hello,


    I'm rewriting all php pages to static urls.
    Only thing that goes wrong is when i have a form and press the submit button, i end up on the php page instead of a rewritten url.

    I have this stuff in the form data:

    
    <form action="<?php echo $_SERVER['PHP_SELF']?>" method="post">
    
    Code (markup):

    Is it possible to end up on a static url after pressing a submit button?
     
    fatabbot, Dec 7, 2006 IP
  2. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #2
    <?php echo $_SERVER['PHP_SELF']?> isn't needed, take it out.......
     
    krakjoe, Dec 8, 2006 IP