JelvisChan
Registered
I just enabled PHP on my iMac 2008 ( Leopard ).
What I want to do is make a regular html form that, when submitted, goes into a database -- which I have used MySQL.
I made the html form, put I do not know how to link PHP and MySQL to process the form.
Please don't make your answer too technical because I am HIGHLY a beginner.
Also, I looked into just PHP form processing and this is what I came up with:
index.html-
and the PHP processor:
welcome.php-
I tried this by putting them both in my Sites secton in my home directory and when I filled in the text box on index.html ( 1st one ), it just gave me the PHP file. What do I have to do to make it so that when you click submit on index.html, the php file gives you the summarization of what you filled out, which should be:
Welcome Jelvis.
Help me?
What I want to do is make a regular html form that, when submitted, goes into a database -- which I have used MySQL.
I made the html form, put I do not know how to link PHP and MySQL to process the form.
Please don't make your answer too technical because I am HIGHLY a beginner.
Also, I looked into just PHP form processing and this is what I came up with:
index.html-
Code:
<html>
Test form:
<form name="test" action="welcome.php" method="post">
<input type="text" name="fname" length="15" value="Type text here..." />
<input type="submit">
</form>
</html>
and the PHP processor:
welcome.php-
PHP:
<html>
<body>
Welcome <?php echo $_POST["fname"]; ?>.<br />
</body>
</html>
I tried this by putting them both in my Sites secton in my home directory and when I filled in the text box on index.html ( 1st one ), it just gave me the PHP file. What do I have to do to make it so that when you click submit on index.html, the php file gives you the summarization of what you filled out, which should be:
Welcome Jelvis.
Help me?