PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
oh yea there it is! well, its after the closing body and html tags for one thing. Also, view the source and see what the javascript function looks like
Hi, this is the source code for the generated pagr, it seems that javaScript doesn't get the form name:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 transitional//EN"-->
<html>
<head>
<script language="JavaScript">
var formName = ;
function formSubmit()
{
alert("This form has the following name: "+formName);
}
keep it public in case someone else has a similar problem!
the above source was not generated by the way above code - where are you adding the "This form has the following name:" ? cause you're not concatenating right for starters...
i know it is, but what script generated it? And the form has no defined action - so how can you submit it? and you are trying to echo form_name in the javascript before you declare it in the bottom - you should move your php before the html