Hi Folks,

I am trying to wrap a form around a basic dialog so that when the user clicks the submit button the form is submitted as per it's defined action. The following is my code, I am pretty new to this stuff but I have a feeling I am being very optimistic thinking this code would work. What I was hoping is that the 'runprogram.php' would be called, but it doesn't appear to be.

var SubmitForm = function() {
	     var tform = getEl('test');
	//	vardiaProgram.hide();

function init (){
    vardiaProgram = new YAHOO.ext.BasicDialog("diaProgram",
vardiaProgram.addButton('Submit', SubmitForm);
YAHOO.util.Event.addListener(window, "load", init);

<form id="test"  method="POST" action="http://localhost/jc/php/runprogram.php">
<div id="diaProgram" style=";visibility:hidden">
<div class="ydlg-hd">Add Dialog</div>
<div class="ydlg-bd">
<label for="fldField1"> Enter this:</label> <input id="fldField1" />
<div class="ydlg-ft"></div>