Skip navigation
Currently Being Moderated

Duplicate query string variables with Insert?

Jul 31, 2012 12:06 PM

Tags: #php #querystring

I'm having an odd problem with an admin page I'm creating to add and delete records from our MySQL db with PHP.

The problem is that in Dreamweaver, I have two forms that each can insert into the db, which works, but after the first submit, the tracking variable I'm using "msg=" keeps getting appended to the URL, so I can end up with "http://mysite.com/admin.php?msg=1&msg=1&msg=1&msg=2", etc.

When you do an insert, shouldn't it just put the current "msg=" in the URL or am I missing the point?

 
Replies
  • Currently Being Moderated
    Jul 31, 2012 12:58 PM   in reply to steph.moreland

    It's been a while, but I recall that there is a option in the server behavior to preserve querystring values. See if that option is checked.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points