Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jun 2010
    Location
    Earth
    Posts
    318
    Thanks
    27
    Thanked 2 Times in 2 Posts

    don't want to use $_GET

    I am currently using a $_GET to reset info in a table. I want to be able to reset that info without having the URL change, but not sure how or where to look. I thought that I could use $_POST but can't figure out how.

    url starts out as index.php

    have a link to reset data
    Code:
    <a href='index.php?id=reset'>reset to 0</a>
    url changes to index.php?id=reset

    can someone help point me in a good direction?
    Last edited by harkly; 11-21-2011 at 07:23 PM.

  2. #2
    Senior Coder
    Join Date
    Apr 2010
    Posts
    1,764
    Thanks
    83
    Thanked 110 Times in 109 Posts
    You could use Javascript to clear or reset the fields.

    http://www.javascript-coder.com/java...set-form.phtml
    Been a sign maker for 8 years. My business:
    American Made Signs

  3. #3
    Regular Coder
    Join Date
    Jun 2010
    Location
    Earth
    Posts
    318
    Thanks
    27
    Thanked 2 Times in 2 Posts
    I thought about using JavaScript but I need to code it for when that is turned off

  4. #4
    Master Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    5,122
    Thanks
    110
    Thanked 602 Times in 589 Posts
    Then you'll have to use a form and a button to use $_POST. IF you don't want to use $_GET, and don't want to use Javascript/Ajax then $_POST is the only other option with the use of a form.
    Quote Originally Posted by deathshadow View Post
    So seriously, loosen up that tie, let out the belt, and try relating to normal people on the street instead of the gentleman's club crowd.

  5. #5
    Regular Coder
    Join Date
    Jun 2010
    Location
    Earth
    Posts
    318
    Thanks
    27
    Thanked 2 Times in 2 Posts
    Thanks!

    I was able to modify $_POST to get what I needed.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •