Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
February 09, 2012, 07:23:54 PM

Pages: [1]   Go Down
  Print  
Author Topic: validate frmregister not defined error  (Read 306 times)
durangod
Galactic Royalty
*****
Offline Offline

Posts: 203


« on: March 13, 2010, 06:49:21 PM »

hi i am getting a validate FrmRegister not defined error


here is the section is there anything wrong here, im also try to find some reference on the net for this.

Code:
<form method="post" action="<?php echo $xxxxxxxx_LINK_ROOT?>/complete_register.php<?php print("?PHPSESSID=".session_id()); ?>&mode=update&user_id=<?=$Sess_xxxrId?>" name="FrmRegister" onSubmit="return Validate_FrmRegister('update')" >

thanks here are my inputs

Code:
<input type="submit" name="Submit" class="button" value="Submit" onclick="return true;">
&nbsp;
&nbsp;
<input class="button" type="button" value="Cancel" name="gobk1" onclick="history.go(-1);return false;" />
<br />
« Last Edit: March 14, 2010, 09:34:13 AM by durangod » Logged
MrPhil
Berserker Poster
*****
Offline Offline

Posts: 5083



« Reply #1 on: March 14, 2010, 07:34:04 AM »

Your <form> has an action defined for "submit" to call Validate_FrmRegister(). This would be a Javascript function that needs to be defined in your page, either hardcoded in a <script> tag or imported with <script src=... You failed to define that function, by not including the necessary code in your page. Go back and re-read the installation instructions for whatever software package you're using, and insert the missing code.
Logged

durangod
Galactic Royalty
*****
Offline Offline

Posts: 203


« Reply #2 on: March 14, 2010, 09:31:53 AM »

its is defined in my register.php file and i was thinking that the includes at the top would take care of that linking of it.

I was just reading about the script src= and it says that if you use that then your link file cannot have any html in it, but it does.. i will keep reading but im wondering if the function Validate_FrmRegister() is inside of my register.php file how do i link to it from another file because that register.php does have html and php in it..


here is what im trying, since it still processes and updates the files fine then im thinking all i need to do is to clear the flag because it processes fine.   so i can either remove the call from the form command for it or i can just put this in my current file at the bottom... which is best you think (if this thinking is even correct lol)

Code:
<script style="text/javascript>
function Validate_FrmRegister()
{return(true);
}
</script>
what im thininking is that it will go to this function, return true and then just have a green flag and be fine.   or do i even need the return at all can i just leave it as {}, not sure
« Last Edit: March 14, 2010, 09:46:14 AM by durangod » Logged
durangod
Galactic Royalty
*****
Offline Offline

Posts: 203


« Reply #3 on: March 14, 2010, 10:00:01 AM »

ok i just noticed its calling complete register php file ill have a look at that and see if i can define the function there.. cool    at least you pointed me in the right direction thanks for that bud
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: