(Apr 4th, 2009, 9:36 PM)Ben Wrote: Hi Kimberly,
I just checked this out, and I think the problem actually lies in your "thankyou" page. Sorry - I thought it was passing "undefined" through the query string.
To prevent it from happening in your page, check that the value is set first:
PHP Code:
if (isset($_GET["error"]))
echo $_GET["error"];
If this doesn't help, email me back with a few more details. Thanks!
- Ben
Thanks Ben. With Form Tools 1 I was using the following code (only one example out of the whole form is show to conserve space):
PHP Code:
<?php
$a1 = $_GET['Guest_1_Given_Name'];
if (!empty($a1)) { ?>
<tr>
<td style='font-weight: bold'>Guest 1 : </td>
<td><?=$_GET['Guest_1_Given_Name']?> <?=$_GET['Guest_1_Surname']?> </td>
</tr>
<tr>
<td style='font-weight: bold'>Guest 1 Status : </td>
<td><?=$_GET['Guest_1_Status']?> </td>
</tr>
<tr>
<td style='font-weight: bold'>Guest 1 Meal : </td>
<td><?=$_GET['Guest_1_Meal']?> </td>
</tr>
<?php } ?>
As you can probably see, this is a reservation form and a number of guests are allowed to be registered along with their membership status and the meal they selected. I check to see if a guest has been registered and if so, then get their status and meal, if not, then it doesn't display anything on the thank you page. The code above worked (I an not a php programmer, but understand a bit of how to write the code) fine with Form Tools 1, but not with Form Tools 2.
With those radio buttons passed to the thank_you.php form, with the radio buttons in a null state, (no radio button selected) I get the following errors on my thank you page.
[error]
Notice: Undefined index: Guest_1_Status in process.php on line 225
Notice: Undefined index: Guest_1_Status in process.php on line 231
Notice: Undefined index: Guest_1_Meal in process.php on line 225
Notice: Undefined index: Guest_1_Meal in process.php on line 231
Notice: Undefined index: Guest_2_Status in process.php on line 225
Notice: Undefined index: Guest_2_Status in process.php on line 231
Notice: Undefined index: Guest_2_Meal in process.php on line 225
Notice: Undefined index: Guest_2_Meal in process.php on line 231
Notice: Undefined index: Guest_3_Status in process.php on line 225
Notice: Undefined index: Guest_3_Status in process.php on line 231
Notice: Undefined index: Guest_3_Meal in process.php on line 225
Notice: Undefined index: Guest_3_Meal in process.php on line 231
Notice: Undefined index: Guest_4_Status in process.php on line 225
Notice: Undefined index: Guest_4_Status in process.php on line 231
Notice: Undefined index: Guest_4_Meal in process.php on line 225
Notice: Undefined index: Guest_4_Meal in process.php on line 231
Warning: Cannot modify header information - headers already sent by (output started at process.php:225) in process.php on line 286
[/error]
Please note that I removed the actual path to process.php in the error output.