After doing some testing with setting a patern and using the ( if (preg_match($pa ttern, $field) I now have a good idea of editing/validating date, phone, zip and currency test boxes from user input frond on a form.
I now realise that I need to know how to properly extract that data into a variable that I can use in a MySQL table INSERT.
What is the best way when all of these fields are text strings, and can the length of the extraction be controlled. The bigest concern for me is the currency field then followed by the rest.
Thanks in advance for all advice.
I now realise that I need to know how to properly extract that data into a variable that I can use in a MySQL table INSERT.
What is the best way when all of these fields are text strings, and can the length of the extraction be controlled. The bigest concern for me is the currency field then followed by the rest.
Thanks in advance for all advice.
Comment