Php form call "action" in form

Hi, I have setup a basic enquiry form with a captcha. When you fill in the form and click submit I am not 100% sure how to action this using the code for the capctah. This is at the top of the page to make sure the “code” in the captcha is correct:

<?php
session_start();
if($_SERVER['REQUEST_METHOD'] == 'POST'){
	$vResult = '';
	if(strtolower($_SESSION['security_code']) != strtolower($_POST['security_code'])){
		$vResult = 'Invalid security code!';
	}
	else{
		THIS IS WHERE THR ACTION GOES ??
	}
}
?>

Where it says THIS IS WHERE… thats where I need to action the /enquiry.php file to send the email. Does anyone have any suugestions?

Cheers,

Paul

<?php

session_start();
if($_SERVER['REQUEST_METHOD'] == 'POST'){
	$vResult = '';
	if(strtolower($_SESSION['security_code']) != strtolower($_POST['security_code'])){
		$vResult = 'Invalid code!';
	}
	else{
		'/enquiry.php';
	}
}
?>

That is probably a better way of showing what I am trying to achieve. - I want to load /enquiry.php (and not using header(location:…) - I want to action the form here.

Is it possible?

Also, this is the <form> line:

<form id=“formcheck” action=“” onsubmit=“return formCheck(this);” name=“formcheck” method=“post”>

Cheers

I have read that JavaScript is another solution to action a form - my only problem would be if I action the form within javascript, how would I inplement this within the else{ } part above?