users.xml stores my users.
On first submit it checks for the user, and adds the user correctly if
not found.
On Second submit it checks for the user, and adds the user Incorrectly
because it didnt find it even tough it is thier.
On Thrid submit it checks for the user, and finds it.
What am I doing wrong?
Reads the XML
my $users = read_users_xml($USERFILE);
Checks for the user.
my $check = $users->{user}->{$id};
if(defined($check)
First Submit XML
<user>
<id>[EMAIL PROTECTED]</id>
<address>123</address>
<answer>NONE</answer>
<city>Orem</city>
<companyname>123</companyname>
<email>[EMAIL PROTECTED]</email>
<first>Trevyn</first>
<grade>Not Finished</grade>
<last>Meyer</last>
<newsletter>off</newsletter>
<phone1>000</phone1>
<phone2>000</phone2>
<phone3>0000</phone3>
<state>Ut</state>
<status>START</status>
<title>NONE</title>
<zip>84058</zip>
</user>
Second Submit XML
<user>
<id>[EMAIL PROTECTED]</id>
<[EMAIL PROTECTED]>
<address>123</address>
<answer>NONE</answer>
<city>Orem</city>
<companyname>123</companyname>
<email>[EMAIL PROTECTED]</email>
<first>Trevyn</first>
<grade>Not Finished</grade>
<last>Meyer</last>
<newsletter>off</newsletter>
<phone1>000</phone1>
<phone2>000</phone2>
<phone3>0000</phone3>
<state>Ut</state>
<status>START</status>
<title>NONE</title>
<zip>84058</zip>
</[EMAIL PROTECTED]>
<address>123</address>
<answer>NONE</answer>
<city>Orem</city>
<companyname>123</companyname>
<email>[EMAIL PROTECTED]</email>
<first>Trevyn</first>
<grade>Not Finished</grade>
<last>Meyer</last>
<newsletter>off</newsletter>
<phone1>000</phone1>
<phone2>000</phone2>
<phone3>0000</phone3>
<state>Ut</state>
<status>START</status>
<title>NONE</title>
<zip>84058</zip>
</user>
_______________________________________________
UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net