|
|
|
|
![]() ![]() |
May 12 2007, 11:38 PM
Post
#1
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 165 Joined: 28-April 07 From: Where ever i feel appropriate Member No.: 42,321 |
I am making a form generator like the one trap17 uses to make the code for website requests. well i have everything set up, i studied the code from the trap17 generator and learned from it, then i tried to make my own, but when i click the generate button, the code isnt filled out. if you would like an example please visit my website at www.notapplicable.rifehost.com/forms/wrf.php
the problem is that it doesnt fill in the the answers. can anyone help? i will put credits on the affilates page and on the gen pages. Here is my code: (this is the form) CODE <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <TITLE>Website Request Form: Start</TITLE> <META name="Author" content="Rutger Boll"> <META name="website" content="www.notapplicable.rifehost.com"> <style type="text/css"> <!-- .style3 { font-size: 12px; font-weight: bold; } .style5 {font-size: 12} .style6 { font-size: 12pt; font-weight: bold; } .style7 {color: #E2E2E2} --> </style> </HEAD> <BODY BGCOLOR="#000000" TEXT="FF6600" LINK="#FF9900" VLINK="#FF3300" style="font-family: verdana; font-size: 8pt; margin-left: 15px; margin-top: 15px;"> <div style='font-size: 16pt; color: #FF6600; background: #000000; font-weight: bold; text-align: center;'>KC Design Website Application Form: Start </div> <br> <div style='text-align: center;'><a href="http://www.ezyrewards.com/?id=29662" target="_blank"></a></div> <br> <form action='http://www.notapplicable.rifehost.com/forms/wrfgen.php' method='post'> <br> <span style='color: #FF0000; font-weight: bold;'>* Required Information!</span><br> <br> <input type='hidden' name='sitename' value='KCD'> <input type='hidden' name='title' value='Website Request Form'> <input type='hidden' name='formname' value='new'> <span style='color: #FF0000; font-weight: bold;'>*</span><b>Desired Website Name</b><br> <div style='padding-left: 20pt;'><input type='text' size='30' value='' name='domain' maxlength='255'></div><br> <br> <span style='color: #FF0000; font-weight: bold;'>*</span><b>Describe what your website is about: </b>What you want it to look like, theme, purpose, etc... <br> <div style='padding-left: 20pt;'><textarea rows='10' cols='60' name='intro' style='font-family: verdana; font-size: 10pt;'></textarea></div><br> <br> <table> <tr> <td> <span style='color: #FF0000; font-weight: bold;'>*</span><b>Forum: </b>Yes/No<br> <div style='padding-left: 20pt;'><input type='text' size='10' value='' name='desired_username' maxlength='8'></div><br> <br> <span style='color: #FF0000; font-weight: bold;'></span><b>Desired Username: </b>Only if using forum<br> <div style='padding-left: 20pt;'><input type='text' size='10' value='' name='age' maxlength='12'></div><br> <br> <span style='color: #FF0000; font-weight: bold;'>*</span><b>Email Address: </b><br> <div style='padding-left: 20pt;'><input type='text' size='30' value='' name='email' maxlength='255'></div><br> <br> <span style='color: #FF0000; font-weight: bold;'>*</span><b>Country Where You Live: </b><br> <div style='padding-left: 20pt;'><input type='text' size='30' value='' name='country' maxlength='255'></div><br> <br> <span style='color: #FF0000; font-weight: bold;'>*</span><b>Theme Of Your Website: </b><br> <div style='padding-left: 20pt;'><input type='text' size='30' value='' name='theme' maxlength='255'></div><br> <br> <span style='color: #FF0000; font-weight: bold;'>*</span><b>Reason You Chose KC Design: </b><br> <div style='padding-left: 20pt;'><input type='text' size='30' value='' name='reason' maxlength='255'></div><br> <br> <span style='color: #FF0000; font-weight: bold;'>*</span><b>How Did You Find KC Design: </b><br> <div style='padding-left: 20pt;'><input type='text' size='30' value='' name='refered' maxlength='255'></div><br> <br> <span style='color: #FF0000; font-weight: bold;'>*</span><b>Would You Recommend KC Design To Others: </b> <div style='padding-left: 20pt;'><input type='text' size='30' value='' name='prev_host_name' maxlength='255'> </div><br> <br> <span style='color: #FF0000; font-weight: bold;'>*</span><b>How Will You Pay:</b><br> <div style='padding-left: 20pt;'><select name='package'><option value='None'><- Select A Package -></option><option value='Ads'>Going through ads</option><option value='Paypal'>Paypal ($10)</option></select></div><br>Pricing may vary, please check <a href="www.notapplicable.rifehost.com/shop.php">here</a> for the most up to date prices<br> <br> </td> </tr> </table> <br> <br> <br> <span style='color: #E2E2E2; font-weight: bold;'>*</span><span class="style6">Additional Comments:</span><br> </p> </p> </p> <div style='padding-left: 20pt;'><textarea rows='10' cols='60' name='additional' style='font-family: verdana; font-size: 10pt;'></textarea></div><br> <span class="style5"><br> <span style='color: #FF0000; font-weight: bold;'>*</span><span class="style3">Do you agree to the terms and conditions outlined in the Terms Of Service, Acceptable Use Policy, and Forum Rules?</span><br> </span> <div class="style5" style='padding-left: 20pt;'><select name='confirmation'> <option value=''></option> <option value='YES, I Agree!'>YES, I Agree!</option> <option value='NO, I Do Not Agree!'>NO, I Do Not Agree!</option></select></div> <span class="style5"><br> <br> <span style='color: #FF0000; font-weight: bold;'>*</span><span class="style3">Your Signature: </span>Your KC Design Forum Username.</span><br> <div style='padding-left: 20pt;'><input type='text' size='30' value='' name='forum_username' maxlength='255'></div><br> <br> <div style='padding-left: 20pt;'><input type='submit' name='Generate Application' value='Generate Application'></div> <br> <center> <br> <br /> </form> <hr /> <p align="center">Forms by robocz033 (Rutger)</p> </BODY> </html> This is the finished thing with no answers: CODE <HTML> <HEAD> <TITLE>Website Request Form: Finished</TITLE> <META name="Author" content="Rutger Boll"> <META name="website" content="www.notapplicable.rifehost.com"> <style type="text/css"> <!-- .style1 {color: #000000} --> </style> </HEAD> <BODY BGCOLOR="#000000" TEXT="#FF6600" LINK="#FF9900" VLINK="#FF3300" style="font-family: verdana; font-size: 8pt; margin-left: 15px; margin-top: 15px;"> <span class="style1"></span> <div style='font-size: 16pt; color: #FF6600; background: #000000; font-weight: bold; text-align: center;'> KC Design Website Application Form: Finished</div> <br> <br> <form action='http://www.notapplicable.rifehost.com/forms/wrfend.' method='post'> <div style='font-size: 16pt; color: #FF0000; font-weight: bold;'><u>Copy and paste the following code: </u></div> <br> <div style='font-size: 10pt; color: #004488; font-weight: bold; padding-left:15pt;'></div> <br> <br> <b>Topic Title: </b>Copy and paste this into the TOPIC TITLE field.<br> <div style='padding-left:15pt;'><input type='text' name='title' size='40' value='Website Application'></div><br> <br> <b>Topic Description: </b>Copy and paste this into the TOPIC DESCRIPTION field.<br> <div style='padding-left:15pt;'><input type='text' name='description' size='40' value='Website Request'></div><br> <br> <b>Topic Content: </b>Copy and paste this into the MAIN TEXT field.<br> <div style='padding-left:15pt;'> <textarea rows='20' cols='80' name='main' style='font-family: verdana; font-size: 10pt;'> I would like to request a website from KC Design. Please find my application below.
I have read, understand, accept, and agree with the Terms Of Service, Acceptable Use Policy, and The Forum Rules: YES, I Agree! Thank You, </textarea> </div> <br> </form><br> <center> <hr /> <p align="center">Form by robocz033 (Rutger)</p> </center> </BODY> </HTML> This post has been edited by robocz033: May 13 2007, 12:00 AM |
|
|
|
May 12 2007, 11:53 PM
Post
#2
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 397 Joined: 9-June 06 From: Wisconsin Member No.: 24,924 |
You can send me the PHP code and I'll take a look at it for you
|
|
|
|
May 12 2007, 11:57 PM
Post
#3
|
|
|
Ephesians 6:10-17 ![]() Group: [MODERATOR] Posts: 1,858 Joined: 22-June 05 From: The World of Gentoo Member No.: 8,528 ![]() |
In the textarea field after submitting the form, did you place the variables that collect the POST data into the textarea in their designated places?
|
|
|
|
May 13 2007, 12:01 AM
Post
#4
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 165 Joined: 28-April 07 From: Where ever i feel appropriate Member No.: 42,321 |
umm, would you mind saying what those variables are? im new to php.
|
|
|
|
May 13 2007, 12:15 AM
Post
#5
|
|
|
Ephesians 6:10-17 ![]() Group: [MODERATOR] Posts: 1,858 Joined: 22-June 05 From: The World of Gentoo Member No.: 8,528 ![]() |
umm, would you mind saying what those variables are? im new to php. Variables, anything that starts with a dollar sign ($). In the form handler page (the page after submtting the form), you need to tell the script to receive the POST values ($_POST['']). Inside the POST array key ($_POST['in here']) you place the name of the input field (<input type="text" name="name">. Form: HTML <form action="form_handler.php" method="post"> <input type="text" name="username"> <input type="submit"> </form> PHP (form_handler.php): CODE <?php
$username = $_POST['username']; echo "[b]Desired username:[/b]".$username; ?> |
|
|
|
May 13 2007, 12:19 AM
Post
#6
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 165 Joined: 28-April 07 From: Where ever i feel appropriate Member No.: 42,321 |
then it should work if i put that in?
|
|
|
|
May 13 2007, 12:22 AM
Post
#7
|
|
|
Ephesians 6:10-17 ![]() Group: [MODERATOR] Posts: 1,858 Joined: 22-June 05 From: The World of Gentoo Member No.: 8,528 ![]() |
then it should work if i put that in? You would require to put one in for each input element that has a name attribute with a value. My code was place there as an example to work off of, to analyze and study. |
|
|
|
May 13 2007, 12:27 AM
Post
#8
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 165 Joined: 28-April 07 From: Where ever i feel appropriate Member No.: 42,321 |
i am doing so right now. thank you so much!
|