I have a form set up (donations.php) that gathers information about a donor. When the user clicks on "Continue," it takes him from donations.php to confirm.php, and it POSTs the info. The confirm.php page puts the POSTed info into variables, prints them in a table and then provides two buttons. One button will submit the donation, and one will "Go Back" to the donations.php page, so they can edit the info if something is incorrect. For this "Go Back" button, I've set it up so that the POSTed variables are thrown into hidden fields and POSTed again back to the donations.php page when the user clicks on "Go Back." And then the values of the fields on the donations.php page are filled with the info that the user already entered, so he can correct it easily without having to enter it all again.

My problem is that when the user then changes his info and clicks on "Continue" again, all of the sudden, this shows up in between the "Submit Donation" and the "Go Back" buttons on the confirm.php:

" />

The weird thing is that this " /> does NOT show up in the "View Source" code. It does this in both IE7 and Firefox 1.5. Here is what the PHP code looks like for this portion:

In the confirmation_error_form.php file, it has the hidden form fields that holds the user's info that will be passed back to the donation form, so he can easily edit it. Here's the code for that file:

See the attached jpg's to see what this anomaly looks like. Please let me know if you have any idea why it is doing this. I'm stumped. Thanks.

JohnDubya

12-21-2006, 09:01 PM

Wow, after diving head first into my code once again, I finally fixed it.

When the user info went from confirm.php back to the donations.php page, it was checking to see if the $address2 variable was NULL. I had set $address2 to be "&nbsp;" in the code, so when it checked $address2 to be NULL, it was false, and that is what created the problem. Very strange and not predictable at all (at least to me).