Code: Selecteer alles
To display a form on your web page: Just add a few lines of PHP code. Show PHP code
Edit the HTML of a PHP page on your web site and add this code:
Put this code in the HTML head section:
<html>
<head>
<script type="text/javascript" src="http://www.watisnf.nl/contact-formulier/contact-form.js"></script>
</head>
Put this code in the HTML body section anywhere you want your form to show:
<html>
<head>
</head>
<body>
<?php
$contact_form = 1; // set desired form number.
$contact_form_path = '/home/vhosting/10/watisnf.nl/www/contact-formulier/'; // set path to /contact-files/ with slash on end.
require $contact_form_path . 'contact-form-run.php';
?>
</body>
</html>
Notes: The code is highlighted in the color green. The <?php ?> tags may not be needed if you are putting the code in a part of your page that already has an open PHP tag. You must set the path correctly or you will get a PHP error: "No such file or directory". You can add more than one form on a page, just repeat the complete PHP code block using a different form number.
Mijn HTML bestand ziet er dan zo uit
Code: Selecteer alles
<!-- INCLUDE overall_header.html -->
<html>
<head>
<script type="text/javascript" src="http://www.watisnf.nl/contact-formulier/contact-form.js"></script>
</head>
<body>
<?php
$contact_form = 1; // set desired form number.
$contact_form_path = '/home/vhosting/10/watisnf.nl/www/contact-formulier/'; // set path to /contact-files/ with slash on end.
require $contact_form_path . 'contact-form-run.php';
?>
</body>
</html>
<!-- INCLUDE overall_footer.html -->*Link verwijderd*
Ik weet niet meer wat ik moet doen, weet iemand van jullie hoe ik dit voor elkaar kan krijgen?





 Dan hoef ik me nergens zorgen over te maken.
 Dan hoef ik me nergens zorgen over te maken. 
