- privacy-policy.html - Privacy Policy page
- about.html - About Us page
- contact.html - Contact form page
- send-contact.php - PHP script to handle form submissions
-
Connect to your Xserver via FTP (FileZilla, FFFTP, etc.)
- Host: Your Xserver FTP hostname
- Username: Your FTP username
- Password: Your FTP password
-
Navigate to your website's public directory (usually
public_htmlorwww) -
Upload all 4 files:
- privacy-policy.html
- about.html
- contact.html
- send-contact.php
Set the correct permissions for the PHP file:
- send-contact.php: Set to
644or755
You can set permissions via:
- FTP client (right-click β File Permissions)
- Xserver file manager
- SSH command:
chmod 644 send-contact.php
- Visit:
https://crypto-station.org/contact.html - Fill out the form with test data
- Click "Send Message"
- Check your email at info@crypto-station.org
Add the new navigation links to your existing pages (index.html, cards.html, crypto-tax.html, ada-comparison.html):
<nav class="nav-menu">
<div class="nav-container">
<ul class="nav-links">
<li><a href="index.html">Home</a></li>
<li><a href="cards.html">Crypto Cards</a></li>
<li><a href="crypto-tax.html">Tax Information</a></li>
<li><a href="ada-comparison.html">ADA Comparison</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
<li><a href="privacy-policy.html">Privacy Policy</a></li>
</ul>
</div>
</nav>Add this footer section to your existing pages before the closing </body> tag:
<footer class="footer">
<div class="footer-links">
<a href="index.html">Home</a>
<a href="about.html">About</a>
<a href="contact.html">Contact</a>
<a href="privacy-policy.html">Privacy Policy</a>
</div>
<p>© 2025 Crypto Station. All rights reserved.</p>
</footer>And add the footer CSS to your existing pages' style sections:
.footer {
text-align: center;
padding: 2rem 0;
color: var(--text-secondary);
border-top: 1px solid var(--border-color);
}
.footer-links {
display: flex;
justify-content: center;
gap: 2rem;
margin-bottom: 1rem;
flex-wrap: wrap;
}
.footer-links a {
color: #667eea;
text-decoration: none;
font-weight: 500;
}
.footer-links a:hover {
text-decoration: underline;
}The provided send-contact.php uses PHP's standard mail() function, which works out-of-the-box on Xserver.
No additional configuration needed!
If you want to improve deliverability, you can:
- SPF Record: Add SPF record to your domain DNS
- DKIM: Enable DKIM in Xserver control panel
- SMTP: Use Xserver's SMTP server (requires additional PHP configuration)
β Input sanitization β Email validation β Honeypot spam protection (hidden field) β XSS protection β IP address logging β Timestamp logging
Add this hidden field to contact.html (inside the form):
<div style="position: absolute; left: -5000px;">
<input type="text" name="website" tabindex="-1" autocomplete="off" />
</div>- Get reCAPTCHA keys from: https://www.google.com/recaptcha/
- Add reCAPTCHA script to contact.html
- Update send-contact.php to verify reCAPTCHA token
Edit send-contact.php line 60 to change the recipient:
$to = "info@crypto-station.org"; // Change this to your emailAdd this code after line 79 in send-contact.php:
// Send auto-reply to user
$user_subject = "Thank you for contacting Crypto Station";
$user_message = "Hello " . $name . ",\n\n";
$user_message .= "Thank you for contacting Crypto Station. We have received your message and will respond within 24-48 hours.\n\n";
$user_message .= "Your message:\n" . $message . "\n\n";
$user_message .= "Best regards,\nCrypto Station Team";
$user_headers = "From: info@crypto-station.org\r\n";
mail($email, $user_subject, $user_message, $user_headers);Solution 1: Check PHP error logs in Xserver control panel Solution 2: Verify email address in send-contact.php Solution 3: Check spam folder Solution 4: Contact Xserver support to ensure mail() function is enabled
Solution: Check file permissions (should be 644 or 755)
Solution: Set up SPF and DKIM records in your domain DNS settings
- Form loads correctly
- All fields are required
- Email validation works
- Form submission shows success message
- Email is received at info@crypto-station.org
- Reply-To address is set correctly
- Form resets after successful submission
- Error messages display correctly
- Dark mode works properly
All three pages include:
- β Clear navigation
- β Professional design
- β Privacy Policy with AdSense disclosure
- β Contact information
- β About page with site purpose
- β Working contact form
- β Footer with links
The PHP script creates a log file: contact_logs.txt
This file tracks:
- Timestamp
- Name
- Subject
Note: Make sure this file is not publicly accessible. Add to .htaccess:
<Files "contact_logs.txt">
Order Allow,Deny
Deny from all
</Files>
For additional help:
- Xserver Support: https://www.xserver.ne.jp/support/
- PHP Mail Function: https://www.php.net/manual/en/function.mail.php
Created for: Crypto Station (crypto-station.org) Date: November 4, 2025 Version: 1.0