RE: [PHP] How can I check form variables in $_POST to make sure t hey are theright format?

2003-06-06 Thread Dillon, John
See: http://www.php.net/manual/en/function.is-numeric.php Well I want to check that the format is a number. Because it's currency, I want to double check to see if there are any $s or similar, and strip them (maybe trim?). And I want to convert the number from a string to a number -- which is

[PHP] RE: Calendar showing availability of apartments/hotels

2003-06-05 Thread Dillon, John
PS I have not yet checked http://www.phpclasses.org (waiting for log in details to come through), though I've looked through recent threads. -Original Message- From: Dillon, John Sent: 05 June 2003 11:59 To: [EMAIL PROTECTED] Subject: Calendar showing availability of apartments/h

[PHP] Calendar showing availability of apartments/hotels

2003-06-05 Thread Dillon, John
I'm looking for your recommendations for php scripts which will give me a web based calendar for showing 'vacant', 'not available' or 'availability unknown' states, based on days available for a particular apartment in the database - eg for 'not available' perhaps the day is crossed out or in red b

RE: [PHP] Mail - avoid backslash before apostrophe

2003-06-03 Thread Dillon, John
I have a text box on a web page and submit button. The php code sends the text as an email. If the text includes an inverted comma/apostrophe the email will include a backslash before it, thus: \'. I know how to str_replace in php, but what do I need to replace the apostrophe with to avoid the \

[PHP] Getting POSTed values from dynamically named checkboxes

2003-05-30 Thread Dillon, John
My problem relates to IF statement in the following code. There are two checkboxes, named altid$thisid, so for instance they become altid36 and altid37. When the form is submitted with both checked, I can read the first altid36, but the second does not pass the IF test. Any suggestions re possib