This is going to be a tough problem to describe. I have a PHP script that collects information from a form, then redirects to a password protected archive (Mailman). I need to send the username and password (to MailMan), but I can't do it in the FORM tag because I can't create the form tag until I collect the info. Hmmm this may be easier to show that explain:
filename: test.php
<?php
if ($entereddata==1) {
$username = "username";
$password = "password";
$url = " . $month . "/" . $year;
header ("Location: " . $url);
exit;
}
?>
<html><head></head><body>
<form method="post" action="test.php">
<input type='hidden' name='entereddata' value='1'>
<select name='month'>
<option>Select Month
<option>January
<option>February
<option>etc</select>
<select name='year'>
<option>Select Year
<option>2003
<option>2004
<option>2005</select>
<select name='type'>
<option>Read Thread Online
<option>Download Entire Thread</select>
<input type='submit' value="Go"></form>
</body></html>
filename: test.php
<?php
if ($entereddata==1) {
$username = "username";
$password = "password";
$url = " . $month . "/" . $year;
header ("Location: " . $url);
exit;
}
?>
<html><head></head><body>
<form method="post" action="test.php">
<input type='hidden' name='entereddata' value='1'>
<select name='month'>
<option>Select Month
<option>January
<option>February
<option>etc</select>
<select name='year'>
<option>Select Year
<option>2003
<option>2004
<option>2005</select>
<select name='type'>
<option>Read Thread Online
<option>Download Entire Thread</select>
<input type='submit' value="Go"></form>
</body></html>