[PHP] Getting a Multiple Select Form Field's Value
Hello: I'm trying to get the value from the following form field. Value1 Value2 Value3 I can get it to return one value, but if I select multiple values I can't get all the values form it. Any ideas would be appreciated. Mike Walth CinoFusion -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Select Field Form Value
Hello: Here is my problem. I am using the following two lines to get multiple values from a form field select statement. while (list($key,$val) = each($_POST[Restrictions])) {$Restrictions .= "$val,";} Restrictions$Restrictions The problem is when it fills out the table, it adds "Array" prior to the values. Is there an easy way to strip that out? Any help is appreciated. Thank you, Mike Walth CinoFusion -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Random String Generation
Hello: What I am trying to do is to create a email verification routine with PHP. When people register on the site they will get an email sent to them with a link such as http://mysite.com/activation.php?ID=ghjghjg367ghjlkj9hjlkjhn0 That way when they click on the link it will verify the code against the database and activate their account. Does anyone know an easy way to create this string? Thank you, Mike Walth CinoFusion -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Update Status Question
Hello: I have this line: $sql = "Update Members Set Active='Y' where Username = '$_GET[UN]' And ActiveCode = '$_GET[ID]'"; Is there a php function that will return true or false or something when this is processed. I.E. if the Where clause fails it would report back fail? Or do I first need to check the status with a select? Thank you, Mike Walth CinoFusion -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Generating Related Drop Down Boxes
Hello all: I have searched the archives, and although I know this is probably there can not find it. I'm probably just not searching for the right subject. Here is what I am looking for. I have a table with Location and Hotel, and another one with Hotel and Accommodations. I need to generate the first drop down box with locations. Then when you select a location it will place the corresponding hotels in another drop down, when you select the hotel it will do the accommodations. What I am looking for is if anyone has a sample or any information how to do the drop downs that update themselves. If I can get a sample for one I'm sure I can figure the rest out. As always, thank you for all your help. Mike Walth CinoFusion -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php