i have wrote some html and php
my form doesnt work so fine i cant find my error
if somebody doesnt mind here is the code.
andyy121
-9
Junior Poster
Recommended Answers
Jump to PostCheck the name of your 'name' form field (line 20).
Jump to Posthi nevermind my first post i think this is what your looking for
<?php $contact_name = $_POST['contact_name']; $contact_email = $_POST['contact_email']; $contact_text = $_POST['contact_text']; if (!empty($contact_name) && !empty ($contact_email) && !empty ($contact_text)) { echo "ok"; } else{ echo "All fields are required."; } ?> <form action="<?php echo $_SERVER['PHP_SELF']; …
All 7 Replies
andyy121
-9
Junior Poster
Zagga
andyy121
-9
Junior Poster
Zagga
ehpratah
48
Posting Whiz in Training
ehpratah
48
Posting Whiz in Training
ehpratah
48
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.