OK, im starting on IzCool main site now. I want to start on the things which i hate doing. And first its the forms. Im crap at forms, so can someone put it into a code. I need 2 forms, 1 for subdomains, the other for a general form.
SubDomain Form:
Name: [TEXT] Email Address: [TEXT] Desired SubDomain: [PERSON CAN WRITE HERE].izcool.com
[< NO-ONE CAN
OVERWRITE IZCOOL.COM] Why you want the SubDomain: [TEXT] What to write in subdomain: [TEXT] What image to put in subdomain: [BROWSE]
General Form:
Name: Email Address: Category: >General Site
>General Forum
>Errors & Problems
>Advertisements
>Job Applications Information: [TEXT BOX]
+Rep, may also give out month VIP if it works.
Want it custom, not from a site or whatever.
16-11-2008, 01:53 PM
Jxhn
HTML Code:
<form name="subdomain" action="subdomainprocess.php" method="post">
Name: <input type="text" name="name" value="Enter your name here" onfocus="this.value=''"><br>
Email address: <input type="text" name="email" value="Enter your email address here" onfocus="this.value=''"><br>
Desired Subdomain: <input type="text" name="subdomain" value="Enter your desired subdomain here" onfocus="this.value=''">.izcool.com<br>
Why you want the subdomain: <input type="text" name="why" value="Enter why you want the subdomain here" onfocus="this.value=''"><br>
What to write in subdomain:<br><textarea name="content"></textarea><br>
What image to put in subdomain: <input type="text" name="image" value="Enter the url of the image here" onfocus="this.value=''"><br> <input name="submit" type="submit" value="Submit"> </form>
<b>Why you want the SubDomain:</b> <input type=\"text\" size=\"40\" name=\"why\"><br>
<b>What to write in subdomain:</b> <input type=\"text\" size=\"40\" name=\"what\"><br>
<b>What image to put in subdomain:</b> <input type=\"text\" size=\"40\" name=\"image\" value=\"http://\"><br> (<i>Upload you're file using <a href=\"http://www.tehupload.com/index.php\" target=\"blank\">TehUpload</a></i>)<br><br>
<input type=\"submit\" value=\"Apply for Subdomain\">
$Message = " You have recieved a subdomain request.<br><br> <b>Name:</b> $name<br> <b>Email:</b> $email<br> <b>Subdomain wanted:</b> $subdomain<br> <b>Why they want it:</b> $why<br> <b>What they want on their subdomain:</b> $what<br> <b>Image they want on it:</b> $image<br><br> <font size=\"1\">Coded by Jack Ellis</font> "; // Email text ;)
<form name="subdomain" action="subdomainprocess.php" method="post">
Name: <input type="text" name="name" value="Enter your name here" onfocus="this.value=''"><br>
Email address: <input type="text" name="email" value="Enter your email address here" onfocus="this.value=''"><br>
Desired Subdomain: <input type="text" name="subdomain" value="Enter your desired subdomain here" onfocus="this.value=''"><br>
Why you want the subdomain: <input type="text" name="why" value="Enter why you want the subdomain here" onfocus="this.value=''"><br>
What to write in subdomain:<br><textarea name="content"></textarea><br>
What image to put in subdomain: <input type="text" name="image" value="Enter the url of the image here" onfocus="this.value=''"><br> <input name="submit" type="submit" value="Submit"> </form>
That's the html, you just need the php now. I would suggest inserting it into a mySQL database rather than sending it by email, but it's up to you.
If I'm not mistaken the php is rather easy?
Something that displays the person's answers with like $variable or something? :S could be wrong though, not good at php
16-11-2008, 02:01 PM
RyanDOT
Quote:
Originally Posted by Jxhn
HTML Code:
<form name="subdomain" action="subdomainprocess.php" method="post">
Name: <input type="text" name="name" value="Enter your name here" onfocus="this.value=''"><br>
Email address: <input type="text" name="email" value="Enter your email address here" onfocus="this.value=''"><br>
Desired Subdomain: <input type="text" name="subdomain" value="Enter your desired subdomain here" onfocus="this.value=''">.izcool.com<br>
Why you want the subdomain: <input type="text" name="why" value="Enter why you want the subdomain here" onfocus="this.value=''"><br>
What to write in subdomain:<br><textarea name="content"></textarea><br>
What image to put in subdomain: <input type="text" name="image" value="Enter the url of the image here" onfocus="this.value=''"><br> <input name="submit" type="submit" value="Submit"> </form>
<b>Why you want the SubDomain:</b> <input type=\"text\" size=\"40\" name=\"why\"><br>
<b>What to write in subdomain:</b> <input type=\"text\" size=\"40\" name=\"what\"><br>
<b>What image to put in subdomain:</b> <input type=\"text\" size=\"40\" name=\"image\" value=\"http://\"><br> (<i>Upload you're file using <a href=\"http://www.tehupload.com/index.php\" target=\"blank\">TehUpload</a></i>)<br><br>
<input type=\"submit\" value=\"Apply for Subdomain\">
$Message = " You have recieved a subdomain request.<br><br> <b>Name:</b> $name<br> <b>Email:</b> $email<br> <b>Subdomain wanted:</b> $subdomain<br> <b>Why they want it:</b> $why<br> <b>What they want on their subdomain:</b> $what<br> <b>Image they want on it:</b> $image<br><br> <font size=\"1\">Coded by Jack Ellis</font> "; // Email text ;)
<b>Why you want the SubDomain:</b> <input type=\"text\" size=\"40\" name=\"why\"><br>
<b>What to write in subdomain:</b> <input type=\"text\" size=\"40\" name=\"what\"><br>
<b>What image to put in subdomain:</b> <input type=\"text\" size=\"40\" name=\"image\" value=\"http://\"><br> (<i>Upload you're file using <a href=\"http://www.tehupload.com/index.php\" target=\"blank\">TehUpload</a></i>)<br><br>
<input type=\"submit\" value=\"Apply for Subdomain\">
$Message = " You have recieved a subdomain request.<br><br> <b>Name:</b> $name<br> <b>Email:</b> $email<br> <b>Subdomain wanted:</b> $subdomain<br> <b>Why they want it:</b> $why<br> <b>What they want on their subdomain:</b> $what<br> <b>Image they want on it:</b> $image<br><br> <font size=\"1\">Coded by Jack Ellis</font> "; // Email text ;)