I'm trying to write an if statement based on the url of the previously click page_id
Something like this:
<?php
$page_id = " the id or url of the page clicked to get to this page"
if($page_id){
jr_register_form_jseeker( $redirect, $role );
}else{
jr_register_form( $redirect, $role );
}
?>
I've looked at is_page()
but that only seems to deal with the current page...?
Any ideas..?
Thanks