Omnimaga

General Discussion => Technology and Development => Web Programming and Design => Topic started by: Spyro543 on July 13, 2011, 11:57:58 am

Title: HTML form help needed
Post by: Spyro543 on July 13, 2011, 11:57:58 am
On my website, I am making an HTML form that someone would fill out to request a custom-made operating system. (My friend and I take requests for custom operating systems and I wanted to make a form that someone could use to request an OS) I once made a test form. This is the email that it sent me:
Code: [Select]
name=test
[email protected]
comment=This is a test email.
Submit=Submit
Look at this. New lines, spaces in-between words, and special characters are shown correctly.
Now look at the output for the form used to request OSes:
Code: [Select]
username=Aaron&useremail=acrennie%40gmail.com&osname=Testing+This+Form&osdescription=Just+testing+this+form+%3A3+%0D%0A&ostype=kde&logo=AdviceBackground.png&wallpaper=AdviceBackground.png&includepkgs=Packages+and+stuffz+%3AP&publishtogallery=yesThis is formatted for putting in a URL. Why is it like this? I used the exact same parameters for this one as I did for my old test form.
If you need it, here is the source code for the form:
Code: [Select]
<form action="MAILTO:[email protected]" method="post" enctype="multipart/form-data" name="EmailTestForm">
Your Name:<br>
<input type="text" size="20" name="username"><br>
Your Email Address<br>
<input type="text" size="20" name="useremail"><br>
OS Name:<br>
<input type="text" size="20" name="osname"><br>
OS Description:<br>
<textarea name="osdescription" rows="10" cols="40" wrap="physical"></textarea><br>
Select a desktop interface:<br>
<select name="ostype">
<option value="noneselected">Select an interface</option>
<option value="jeos">Just Enough OS</option>
<option value="kde">K Desktop Environment (KDE)</option>
<option value="gnome">Gnome Desktop Environment</option>
<option value="server">Server (Text-Only)</option>
<option value="minimalx">Minimal X (IceWM)</option>
</select><br>
Add a logo:<br>
<input name="logo" type="file" /><br>
Add a wallpaper:<br>
<input name="wallpaper" type="file" /><br>
If no logo or wallpaper added, the standard SuSE logo and/or wallpaper will be used.<br><br>
List the packages wanted here. Remember, this is a SuSE OS, so make sure the packages you are listing are SuSE-compatible.<br>
<textarea name="includepkgs" rows="10" cols="40" wrap="physical"></textarea><br>
Do you want this OS to be publicly shown on SuSE Gallery?<br>
<input type="radio" name="publishtogallery" value="yes">Yes
<input type="radio" name="publishtogallery" value="no">No<br>
<input type="submit" value="Send Request"></form>
Sorry, but I do not have the source for my old test form.

My question is, how can I make the OS form output readable, just like the old test form?
(To test this form, go to http://anova.57o9.org/osform.htm (http://anova.57o9.org/osform.htm))
Title: Re: HTML form help needed
Post by: Deep Toaster on July 13, 2011, 02:06:12 pm
Don't use action="mailto:. What that does is call the client's default installed mail software (such as Outlook) to send the form data through there. The problem is that not every computer has a mail program, and every mail program is different. You should definitely use PHP to take care of the form data instead.
Title: Re: HTML form help needed
Post by: Spyro543 on July 13, 2011, 03:13:46 pm
Don't use action="mailto:. What that does is call the client's default installed mail software (such as Outlook) to send the form data through there. The problem is that not every computer has a mail program, and every mail program is different. You should definitely use PHP to take care of the form data instead.

FUUUUUUUUUUUU~! (I wouldn't know where to start!)


Still wondering how I can make the form output readable?