Jump to content

php limiting form options


ichversuchte

Recommended Posts

is the user already logged in? if so, then just grab the user's email address wherever var you have it in (i'm using $useremailaddress as generic var), get the last 8 chars of it and put that into a var ($checkaddress) and if $checkaddress does not = @ipu.edu then display the text box or do whatever you wanna do.


$checkaddress = substr($useremailaddress,-8);
if ($checkaddress != '@iup.edu') {
/* insert text box here

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.