Thanks for the suggestions people !
tsinka's suggestion seems to work best for my setup. There's only one minor problem (which couldn't be forseen ofcourse since I didn't include my setup, like dalecsp said).
------------------------------(setup)-----------------------------------
I have a navigation bar that loads the series_letter.php in a frame along with a variable like this : <a href="series_letter.php?letter=a" target="SeriesFrame">A</a>
The series_letter.php holds the code to retrieve and display the names of the series starting with the letter (in this case 'a').
There's a submit form at the bottom that sends the letter as well :
<form name="series_form" action="submit_series.php" method="post">
<input type="hidden" value="<?php echo ($s_letter); ?>" name="series_letter">
This submit_series.php inserts the data into my mySQL database's series table.
Failure or succes, it will always include the series_letter.php (the one with the displaying and submit form).
When submit_series is initialized from the naviagation.html, it can $_GET the letter variable. When initialized from the submit_series.php, it can acces the letter by using $GLOBALS.
$global_letter = $GLOBALS['letter'];
if (!$global_letter) {
$get_letter = $_GET['letter'];
$s_letter = $get_letter;
} else {
$s_letter = $global_letter;
}
This code gives an error(undefined index letter) when series_letter.php is initialized from the navigation.html. But if I turn it around, it gives that same error when initialized from the submit_series.php. I could ofcourse call another script from the submit_series.php, but that would be plain silly.
Anyone knows of some nice setup / function to tackle this one ? It would be much appreciated !