I know this is kind of silly but I am getting confused and don't know where to add the OnSubmit function which is supposed to open the SaveEvent.php file (its in the www directory). As of now the code doesn't work. As in nothing happens when I click the submit button.

<form action="SaveEvent.php" method="post" target="hiddenFrame">
EventID: <input type="text" name="EventID" />
<br />
EventName: <input type="text" name="EventName" />
<br />
EventVenue: <input type="text" name="EventVenue" />
<br />
EventFrom: <input type="text" name="EventFrom"/>
EventTo: <input type="text" name="EventTo"/>
<br />
<input type="submit" onSubmit="SaveEvent.php" />

At the moment you have a few things wrong. The form action should be SaveEvent.php . Im not sure what the hiddenframe is but get rid of it. You also don't need to have an onsubmit function because you already have the action in the form.

<form name="event" action="SaveEvent.php" method="POST">
<input type="submit" value="Save" />

Then all the variables have been posted to SaveEvent.php and you would simply do the following on the SaveEvent.php page to initialize them.