21
Hi jlm69
I have been doing some modifications to 'addlisting.php' and 'modify.php' which you might be interested in. I cleared all the PHP undefined var notices and changed the Javascript to add some regex field validation.
For example, I made the 'Name' field a required field (users can enter their nicname if they prefer) but this now keeps the email form happy. The new script also validates the format of the email address, the number format in the price field and it checks for 255 characters or less in the description.
I left the telephone field optional, but it validates the number if the field is completed. I used the UK telephone format, so you might want to change the regex for that on your final download, or perhaps you could provide some commented-out options for different coutries?
Anyway, I was hoping to email you the files rather than paste here. If you want to PM me with an address.
Problems User Side:
class/nav.php
Need to change instances of:
_CLA_NEXT and _CLA_PREV
to:
_ADS_NEXT and _ADS_PREV
BTW. Is the form checked for malicious code somewhere as part of a XOOPS thing?
A thread is for life. Not just for Christmas.