progetto di prova che mostra le macchine fiat e un form che permette di contattare
filippo.bertilotti
2024-04-23 395ba31398decd5dd1e62a8a2e6ce34d55f06a31
implementazione modulo con annessa pagina php contact us
2 files added
1 files modified
32 ■■■■■ changed files
htdocs/contact.php 11 ●●●●● patch | view | raw | blame | history
ihtml/contact.tpl 20 ●●●●● patch | view | raw | blame | history
ihtml/header.tpl 1 ●●●● patch | view | raw | blame | history
htdocs/contact.php
New file
@@ -0,0 +1,11 @@
<?php
    require '../vendor/autoload.php';
    use Smarty\Smarty;
    $smarty = new Smarty();
    $smarty->setTemplateDir('../ihtml');
    $smarty->setCompileDir('../compile');
    $smarty->display('contact.tpl');
    echo "contact";
?>
ihtml/contact.tpl
New file
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Tipo</title>
    <link rel="stylesheet" href="files_comuni/style/style.css">
</head>
<body>
    {include file="header.tpl"}
    <main>
        {* FORM *}
        <form action="contact.php">
            <input type="text" name="prova" placeholder="metti qualcosa">
            <button type="submit">clicca qui</button>
        </form>
    </main>
    {include file="footer.tpl"}
</body>
</html>
ihtml/header.tpl
@@ -6,4 +6,5 @@
    <a href="panda.php">FiatPanda</a>
    <a href="500.php">500</a>
    <a href="tipo.php">FiatTipo</a>
    <a href="contact.php">Contact Us</a>
</header>