in need help

I have this kind of code that was designed by other programmers but i want to validate the email field, i have already have a emailvalidation function but how can i call this function in codes like this

echo $form -> createText(‘email’, showSysMessage(‘default’,‘0077’, $_SESSION[‘LANG_CODE’], $_SESSION[‘SHOW_MSG_CODE’], $link), ‘26’, 0, ‘’, 0, showSysMessage(‘default’,‘0055’, $_SESSION[‘LANG_CODE’], $_SESSION[‘SHOW_MSG_CODE’], $link), setUpdateValues(2, “SELECT email FROM students WHERE regno=’”.$_SESSION[‘recid’]."’", $link));

That’s easy I’m going to help you out and highlight all the existing functions that code is already calling, so you just need to follow the same example…

echo $form -> createText(‘email’, showSysMessage(‘default’,‘0077’, $_SESSION[‘LANG_CODE’], $_SESSION[‘SHOW_MSG_CODE’], $link), ‘26’, 0, ‘’, 0, showSysMessage(‘default’,‘0055’, $_SESSION[‘LANG_CODE’], $_SESSION[‘SHOW_MSG_CODE’], $link), setUpdateValues(2, “SELECT email FROM students WHERE regno=’”.$_SESSION[‘recid’]."’", $link));

Now, you see see all the function calls high-lighted in red above, now you need to identify the email address and wrap that in your new email validation function. The only email I see in the code provided seems to be something that might be returned from “SetUpdateValues”, but I can’t tell I don’t have enough information.

Sponsor our Newsletter | Privacy Policy | Terms of Service