Hello.
I've a question about a form submit.
I've an index.php page with tabs which paint, depending on the tab pressed, another php page with the instruction "include('newpage.php');" and using an html hidden input (named "pagina"). One of this is the register php page and I've there the form which has the necessary fields and the submit button. I'm using this code:
if (isset($_POST['pagina'])) {
$pagina=$_POST['pagina'];
if($pagina=='newpage'){
include('newpage.php');
}
}
Now I'm validating the fields via php when i submit this form.
So, in the form action, i'm putting "./index.php" or "./", because this is which i want to launch, but i want to know where I could put the:
document.getElementById('pagina').value='newpage';
to be able to open my newpage.php page.
Any idea?
I hope you can understand what I'm saying.
Thank you very much