Hello!
I have a html file that has forms and some submit buttons.
I want that html page to show some information that is executed from a PHP code but I dont know how to do it... (how to maintain the looks of the html page and return the result of the PHP script?)
<?php
if(isset($_POST['your_button_name'])){
//process submitted data
$firstName = $_POST['firstName_txt'];
$secondName = $_POST['secondName_txt'];
//connect to database...
//run sql...
}
//if form has'nt been submitted, show this form
else{
?>
//your form
<?php
} //end of if
?>
[/color]
Last edited by Benjamin on Tue May 26, 2009 11:19 am, edited 1 time in total.
Reason:Changed code type from text to php.