Applies to the free version
This is code for a basic contact form (name, email, message). This code is included in the free version of diyform.
The form looks like this (dummy form, won't do anything):
Add code to your form page
Copy the code below and paste it into the page on your website where you want the contact form to appear:
Name
<p><input type="text" name="name"
style="box-sizing:border-box; width:100%; height:40px; font-size:100%"></p>
Email
<p><input type="email" name="email"
style="box-sizing:border-box; width:100%; height:40px; font-size:100%"></p>
Message
<p><textarea name="message"
style="box-sizing:border-box; width:100%; height:200px; font-size:120%"></textarea></p>
<input type="submit" value="Send" style="font-size:100%; width:100px; height:40px">
Powered by <a href="https://diyform.me/" style="color:#ffffff">diyform</a></p>
</form>Configure the script
Open the script (diyform.php) in a text editor. Locate this line:
Enter your email address, like this example:
Upload the files
Upload your form page and the script to your webspace (remembering to save the files first!). Put them in the same directory (folder).
That's it, done.© copyright diyform 2025