is there a limit to the amount of times you can pass a variable in a URL? I have opened up a page after doing an AJAX call and I'm passing the mid variable through fine.
window.open('articlecrop.php?id='+ result.mid, '_self');
I get the variable in php, do some unrelated stuff, then forward it through...
$id = $_GET['id'];
if( isset($_POST['submit']) )
{header("Location: articlesave.php?filename=$filename&height=$orig_h&id=$id");
}
But the variable doesn't go through.
I've tried to echo the $id on to the screen and it works. I've also tried changing the $id field to some random text and it passes, so I know there isn't anything wrong with me pulling and passing the variable.
The problem seems to be in that I'm taking a variable from a URL, then passing it on again in the URL. Does anyone have a way around that?
<form action="<?PHP echo $_SERVER['PHP_SELF']; ?>" method="post" enctype="multipart/form-data">
<p>
<label for="image">Image</label>
<input type="file" name="image" id="image">
<br />
</p>
<p>
<input type="submit" name="submit" value="Upload image" />
</p>
</form>