Jump to content

I'm getting strange ouput in url string


s0c0

Recommended Posts

I've been getting strange output in my url string within my app lately.  It adds stuff like ?1174406969965 when I'm not even posting a url string on my forms.  This doesn't seem like a big issue, but I was wondering if anyone has ran into this before.

 

I used the following to post to the page:

<form action="<?php echo $_SERVER['PHP_SELF'];?>" method="post">
<?php

        /* If session variable is null then tell the user to login again */
        if(!isset($user))
        {
                echo "<p><strong>Your session has timed out, please login again.</strong></p> \n";
        }

        /* begin html table for listing users mp3s */
        echo "<table border='0' cellspacing='2' class='bubbletbl'> \n";
        echo '<tr>';
        echo "<td> </td> \n";
        echo "<td width='130'><strong>Song</strong></td> \n";
        echo "<td width='130'><strong>Artist</strong></td> \n";
        echo "<td><strong> </strong></td> \n";
        //echo "<td><strong>Genre</strong></td> \n";
        //echo "<td><strong>Length</strong></td> \n";
        //echo "<th bgcolor='#CCCCCC'>Playlist</th>";
        echo "</tr> \n";

        /* loop throgh user's mp3s and create html table row for each */
        /* checkbox is given the songs mysql table id */
        for($i=0; $i<$num_tracks; $i++)
        {
                $row = $trackresult->fetch_assoc();
                echo '<tr>';
                echo "<td><input type=\"checkbox\" name=\"track[]\" value=\"". $row['id'] ."\"></td> \n"; // radio value is mp3.id
                echo "<td><a href='" . $row['file'] . "'>" . $row['song'] . "</a></td> \n"; //link is mp3 file
                echo "<td>" . $row['artist'] . "</td> \n";
                echo "<td><a href=\"javascript:popUp('/popup/update/index.php?id=". $row['id'] ."&uid=". $uid ."')\">Update</a></td> \n";
                //echo "<td>" . $row['genre'] . "</td> \n" ;
                //echo "<td>" . $row['playtime'] . "</td> \n";
                //echo "<td>" . $row['playlist'] . "</td>";
                echo '</tr>';
        }
                echo "</table> \n";

                /* post checkbox variables to self, this will delete the selected records */
                /* the code for this is at the top of the script around line 30-50 */
                echo "<p><input type=\"submit\" name=\"delete\" value=\"Delete Tracks\"> \n";
                echo "</form> \n";

?>

 

 

Link to comment
https://forums.phpfreaks.com/topic/43503-im-getting-strange-ouput-in-url-string/
Share on other sites

Are you using sessions? If so that is the session id being passed, google remove session id from url to turn it off.

 

Yes, I am using sessions, but none of what I have googled is solving the problem.  Anyone have an exact how to on this or specific code?  If not then I'll eventually figure it out for myself, thanks.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.