49 users online (0 members and 49 guests)  


  Results 1 to 2 of 2

Related

  1. Funny!    Forum: General Discussion
    Replies: 5
  2. Form Submit Problem    Forum: HTML Forum
    Replies: 2
  3. submit form problem    Forum: HTML Forum
    Replies: 0
  4. Replies: 1
  1. #1
    salamancafiesta's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2007
    Posts
    1

    Funny Problem With Form

    I am having a little problem.

    In my maling list i have added a link for the user to click and unsuscribe.

    The thing is that anybody can see the route on the status bar. An anybody can cut & paste that route onto the browser and start unsuscribing other users just changing the user id number.

    I have tried several scripts for hiding the links, but email servers do no execute them, or when used dont recognize the links.

    The solution was to use a form with a submit button used for unsuscribing. This is code:

    <form method='post' form enctype='multipart/form-data' action='http://www.balabalabal.com/unsuscribe_mailinglist.php?user_id=$user_id''>
    <p><input type='submit' value='Unsuscribe' name='B1'></p>
    </form>


    I ve tried iit but eventhough itīs a submit button you can still see the link on the status bar when appearing in a en email.

    How can i hide the link? Solutions nyone? Thank you

  2. #2
    vinyl-junkie's Avatar
    Moderator

    Status
    Offline
    Join Date
    Sep 2005
    Posts
    721

    Re: Funny Problem With Form

    You can't stop them from seeing the link or figuring out the URL. What you can do though is make sure all your script variables are POST variables. For example:

    Code:
    if($_SERVER['REQUEST_METHOD'] != "POST"){
       // do something here    
    }
    You already have method='post' in your form. If they don't pass the query string variables via post, you might want to redirect them to the forms page.

    Hope this helps.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more



Tags for this Thread