I'm running a script which is resulting with one variable as an Undefined Index. The error message is:
Undefined index: intcredit in C:\Inetpub\fullfocus\AtlantaMtgPlace\loan_options.php on line 23

I do not understand why this message is appearing. The form which contains the answer to this question is a radio button. I have two additional radio button questions right above it and their values are coming through to the script without a problem. For some reason, my script doesn't like the variable "intcredit".

Can someone help me out? I copied and pasted one of the other radio buttons and modified it for this variable.

<tr><td colspan=2><p style="line-height: 20px;"><b>If closing on or before the 5th of the month, do you want an interest credit? (First mortgage payment will be at the beginning of the next month. Ex: closing date is 6/5/2007, first payment is on 7/1/2007)</b><br>
<INPUT TYPE=RADIO NAME=intcredit VALUE=Yes checked>&nbsp;Yes, I want an interest credit.<BR>
<INPUT TYPE=RADIO NAME=intcredit VALUE=No >&nbsp;No, I do not want an interest credit.</p></td></tr>

This script processes the form. I only included the top half of the script which is a bunch of echo statements. The value for "intcredit" is not appearing in the echo statement. The rest of the script is useless if I can't see the value for this variable.

As you can see the radio button code is identical to the other two and the echo statement is identical to the two above.

Can someone help me out? Thank you.

Fou-Lu

06-10-2007, 03:31 PM

Without starting a session I'm suprised that you don't get undefined index's on all of your session requests.
Are you sure you want a $_SESSION value requested, or a $_POST/$_GET request instead? Since the second script processes the code from the first which does not create a $_SESSION['intcredit'], you are trying to point to a value in an array that does not exist. Thats where your trouble is at.

focus310

06-11-2007, 11:01 AM

Hi,

Thank you for the reply. After taking a long break from this, I realized I had another script which was forgotten. This script takes my form variables and validates, posts and creates the session variables. The script was forgotten because the name of the script needs to be changed. It's not named properly.