I'm looking for someone that knows how to setup a basic HTML layout that will use a php file or not in which there will be 10 Questions. The boxes for text will be of enough to put in a few sentences as needed to place answers in and once these answers are all filled in click Submit and it sends the questions along side the results to an email of my choice.
I've set up a few feedback forms from templates I've found online but editing them so far has drove me nuts as the form doesn't seem to be sending. If you know how to do this please PM me...you can just put in temp questions and a temp email I'll edit them later.
I only need a total of 10 Question slots
This is basically going to be used on a site that has full up to date php versions etc etc..so don't worry about that.
Thanks
Here is the code if someone can see what is wrong.
This is the html file named - Tier2Application.html
<tbody><tr> <td valign="top"> <label for="age">What is your age? </label> </td> <td valign="top"> <input type="text" name="age" maxlength="50" size="30"> </td> </tr>
<tr> <td valign="top" "=""> <label for="Time_Zone">What Time Zone/Country do you live in? </label> </td> <td valign="top"> <input type="text" name="Time_Zone" maxlength="50" size="30"> </td> </tr> <tr> <td valign="top"> <label for="Extra_abilities">What other servers do you currently have extra abilities with ie: VIP, Donator, Admin etc etc? </label> </td> <td valign="top"> <textarea type="text" name="Extra_abilities" maxlength="1000" cols="25" rows="6"><textarea> </td>
</tr> <tr> <td valign="top"> <label for="position">Tell us why you think you should hold this position.</label> </td> <td valign="top"> <textarea type="text" name="position" maxlength="1000" cols="30" rows="6"><textarea> </td> </tr> <tr> <td valign="top"> <label for="dedicate">How much time do you dedicate to our Servers in a week?</label> </td> <td valign="top"> <input name="dedicate" maxlength="70" size="30"> </td> <tr> <td valign="top"> <label for="improve">Tell us how you could help us to improve our community and servers.</label> </td> <td valign="top"> <textarea type="text" name="improve" maxlength="1000" cols="30" rows="6"><textarea> </td> </tr> <tr> <td valign="top"> <label for="Opinion">What do you think of the servers at this time?</label> </td> <td valign="top"> <textarea type="text" name="Opinion" maxlength="1000" cols="30" rows="6"><textarea> </td> </tr> <tr> <td valign="top"> <label for="Duration">How long have you been a part of this function?</label> </td> <td valign="top"> <textarea type="text" name="Duration" maxlength="1000" cols="30" rows="6"><textarea> </td> </tr> <tr> <td valign="top"> <label for="Rep_Thread">Do you have a site? If so please provide URL.</label> </td> <td valign="top"> <textarea type="text" name="Rep_Thread" maxlength="1000" cols="30" rows="6"><textarea> </td> </tr> <tr> <td valign="top"> <label for="populate">What suggestions would you give to enhance the servers to help populate them more?</label> </td> <td valign="top"> <textarea type="text" name="populate" maxlength="1000" cols="30" rows="6"><textarea> </td> </tr>
// CHANGE THE TWO LINES BELOW $webmaster_email = "[email protected]";
$email_subject = "Tier2 Application";
function died($error) { // your error code can go here echo "We are very sorry, but there were error(s) found with the form you submitted. "; echo "These errors appear below.
"; echo $error."
"; echo "Please go back and fix these errors.
"; die(); }
// validation expected data exists if(!isset($_POST['age']) || !isset($_POST['Time_Zone']) || !isset($_POST['Extra_abilities']) || !isset($_POST['position']) || !isset($_POST['dedicate']) || !isset($_POST['improve']) || !isset($_POST['Opinion']) || !isset($_POST['Duration']) || !isset($_POST['Rep_Thread']) || !isset($_POST['populate'])) { died('We are sorry, but there appears to be a problem with the form you submitted.'); }
Wow, imagine you dump hundreds of hours into completing things and unlocking stuff and you lose it all.
Back in the day when cheats were built into games, you could at least unlock things again that way without spending hundreds of hours again. But those days are long gone for some reason as no one builds cheats into games anymore.
So it's even more painful that studio that's on its 6th installment **** it up so badly.
Spotify finally removes the disco ball app icon in the latest update by Ivan Jenic
Image: Spotify
Spotify has just released an update that removes its now infamous disco ball icon. The update reverts the app icon to the familiar flat green logo after weeks of mixed reactions online. The icon arrived on May 13 as part of the company's 20th anniversary celebration and was always intended to be temporary, though Spotify only confirmed that after the backlash started.
The disco ball took the internet by storm, as the reception was split. A vocal group of users called it ugly and disorienting, with some iOS users noting that the 3D glowing effect made the app look like it was stuck mid-update.
On the other end, the icon picked up a following of its own. Its retro, three-dimensional look immediately stood out against the flat, minimalist aesthetic that has dominated app design for years. It even started a small movement, spawning what people started calling "discomorphism," a mashup of disco and skeuomorphism. Other brands started posting disco ball versions of their own logos, probably in an effort to ride the wave of memes that flooded the internet during late May.
Spotify has had a turbulent relationship with its user base lately. Besides the disco ball icon, which certainly wasn't appreciated by everyone, the company has also received backlash for its willingness to include AI-generated music on its platform.
On May 17, Spotify promised the old icon would return “in a few weeks.” And now it looks like that time has finally arrived.
So, whether you liked the disco ball or it made you uncomfortable, it’s now gone for good. The next time you update the Spotify app on your phone, the old, flat-design icon will return.
Question
sava700
I'm looking for someone that knows how to setup a basic HTML layout that will use a php file or not in which there will be 10 Questions. The boxes for text will be of enough to put in a few sentences as needed to place answers in and once these answers are all filled in click Submit and it sends the questions along side the results to an email of my choice.
I've set up a few feedback forms from templates I've found online but editing them so far has drove me nuts as the form doesn't seem to be sending. If you know how to do this please PM me...you can just put in temp questions and a temp email I'll edit them later.
I only need a total of 10 Question slots
This is basically going to be used on a site that has full up to date php versions etc etc..so don't worry about that.
Thanks
Here is the code if someone can see what is wrong.
This is the html file named - Tier2Application.html
here is the php file named html_form_send.php
<?php
if(isset($_POST['email'])) {
// CHANGE THE TWO LINES BELOW
$webmaster_email = "[email protected]";
$email_subject = "Tier2 Application";
function died($error) {
// your error code can go here
echo "We are very sorry, but there were error(s) found with the form you submitted. ";
echo "These errors appear below.
";
echo $error."
";
echo "Please go back and fix these errors.
";
die();
}
// validation expected data exists
if(!isset($_POST['age']) ||
!isset($_POST['Time_Zone']) ||
!isset($_POST['Extra_abilities']) ||
!isset($_POST['position']) ||
!isset($_POST['dedicate']) ||
!isset($_POST['improve']) ||
!isset($_POST['Opinion']) ||
!isset($_POST['Duration']) ||
!isset($_POST['Rep_Thread']) ||
!isset($_POST['populate'])) {
died('We are sorry, but there appears to be a problem with the form you submitted.');
}
$age = $_POST['age']; // required
$Time_Zone = $_POST['Time_Zone']; // required
$Extra_abilities = $_POST['Extra_abilities']; // required
$position = $_POST['position']; // required
$dedicate = $_POST['dedicate']; // required
$improve = $_POST['improve']; // required
$Opinion = $_POST['Opinion']; // required
$Duration = $_POST['Duration']; // required
$Rep_Thread = $_POST['Rep_Thread']; // required
$populate = $_POST['populate']; // required
$error_message = "";
$email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/';[/size][/font]
[font="Verdana"][size="2"] }
if(strlen($error_message) > 0) {
died($error_message);
}
$email_message = "Form details below.\n\n";
function clean_string($string) {
$bad = array("content-type","bcc:","to:","cc:","href");
return str_replace($bad,"",$string);
}
$email_message .= "First Name: ".clean_string($first_name)."\n";
$email_message .= "Last Name: ".clean_string($Time_Zone)."\n";
$email_message .= "Email: ".clean_string($email_from)."\n";
$email_message .= "position: ".clean_string($position)."\n";
$email_message .= "dedicate: ".clean_string($dedicate)."\n";
$email_message .= "improve: ".clean_string($improve)."\n";
$email_message .= "Opinion: ".clean_string($Opinion)."\n";
$email_message .= "Duration: ".clean_string($Duration)."\n";
$email_message .= "Rep_Thread: ".clean_string($Rep_Thread)."\n";
$email_message .= "populate: ".clean_string($populate)."\n";
// create email headers
$headers = 'From: '.$email_from."\r\n".
'Reply-To: '.$email_from."\r\n" .
'X-Mailer: PHP/' . phpversion();
@mail($email_to, $email_subject, $email_message, $headers);
?>
<!-- place your own success html below -->
Thank you for the application. We will be in touch with you very soon.
<?php
die();
?>
[/CODE]
Be sure to remove this from the code above at the bottom cause for some stupid reason it keeps adding it to the code
/size /font font=verdana size=2 ALL THIS WITHOUT THE BRACKETS...damn stuff!!</textarea></td></tr></tbody></table></form>
Link to comment
https://www.neowin.net/forum/topic/1079759-help-making-a-qa-form/Share on other sites
12 answers to this question
Recommended Posts