hi, i have a XML file which i need to reference (can't change format), i.e.:
what i need to do, is make a script to check if the person's UniqueID is in the list or not (the uniqueID is submitted to this PHP file using a form)
the uniqueID is equivalent to a field called userID in the form.
how can i word the script to check if it's in the list or not?
I want to have people submit details, and if they are in the list, there details are saved (i.e. they are put on the event signup list) and if they are not, they get a message saying that they need to join the club.
Thanks a lot.
Code:
<MembershipAPI>
−<Member>
<FirstName>John</FirstName>
<LastName>Smith</LastName>
<UniqueID>1234567</UniqueID>
<EmailAddress>[email protected]</EmailAddress>
-</Member>
−<Member>
<FirstName>Hannah</FirstName>
<LastName>Tayler</LastName>
<UniqueID>5245695</UniqueID>
<EmailAddress>[email protected]</EmailAddress>
-</Member>
</MembershipAPI>
what i need to do, is make a script to check if the person's UniqueID is in the list or not (the uniqueID is submitted to this PHP file using a form)
the uniqueID is equivalent to a field called userID in the form.
how can i word the script to check if it's in the list or not?
I want to have people submit details, and if they are in the list, there details are saved (i.e. they are put on the event signup list) and if they are not, they get a message saying that they need to join the club.
Thanks a lot.
Last edited: