[FX.php List] PHP question

VanBuskirk, Patricia pvanbuskirk at otc.fsu.edu
Thu Jan 14 07:19:24 MST 2010


This is probably an easy one, but I cannot think this morning!  In PHP,
if I wanted to see if the contents of a field end with something, how
would I word it?

 

Ie. If the Department Name ends in " Hall" (Landis Hall, Bryan Hall,
etc), then do this...

 

Here's what I'm trying and it is not working:

 

if (isset($_POST['Department_Name']) && $_POST['Department_Name'] == "*
HALL") {

 

Thanks,

Trish

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20100114/55188469/attachment.html


More information about the FX.php_List mailing list