Jul 24, 2008

Form Generator

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > PHP Programming

free web hosting

Form Generator

robocz033
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.
  • Desired Website Name:
    • [/COLOR]

  • Describe Your Website:

  • Forum:
    • asdf

  • Desired Username:

  • Email Address:

  • My Country:

  • Theme Of My Website

  • Why I Chose KC Design

  • How I Found KC Design

  • I
    • Recommend KC Design

  • I Will Pay By:

  • Additonal Comments:

  • Signature
    • [COLOR=navy]

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>

 

 

 


Reply

ghostrider
You can send me the PHP code and I'll take a look at it for you smile.gif. PM it to me.

Reply

truefusion
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?

Reply

robocz033
umm, would you mind saying what those variables are? im new to php.

Reply

truefusion
QUOTE(robocz033 @ May 12 2007, 08:01 PM) *
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;

?>

 

 

 


Reply

robocz033
then it should work if i put that in?

Reply

truefusion
QUOTE(robocz033 @ May 12 2007, 08:19 PM) *
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.

Reply

robocz033
i am doing so right now. thank you so much!

Reply

hitmanblood
QUOTE(robocz033 @ May 13 2007, 02:27 AM) *
i am doing so right now. thank you so much!


I've checked you form and it works nice I don't see any problem with it.

Reply

robocz033
yep, got it fixed. now im working on a better interface.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : form, generator

  1. Forms, Text Files, And Php For A Signature Generator.
    Help a little. (1)
  2. Dynamic Image / Signature Generator
    a simple code to change text on an image (12)
    In search of dynamically changing quote, saying or all other types of text on an image I came across
    a code that I have modified to fit my initial usage. This procedure requires two files and short
    knowledge of PHP. If you are familiar with Trap17's sig rotation code you will understand this
    procedure very fast. Code 1: dynamic_sig.php (you can rename this to index.php and you'll see
    at the end why) Code 2: a simple text file named anything (I will call it name.txt ) Code 1
    CODE <?php header("Content-type: image/png"); �....
  3. Php Form -fantastico Form Generator
    Need overview re: How To use & setup (0)
    Hey Guys, Can anyone give me a quick overview on how to use the Fantastico FORM generator script in
    CPanel. Need to set up several forms for website user input. Specifically, HowTo: 1) compose the
    form ; 2)Where to put the form (ie. in which folder etc.); 3) how to link the form to buttons on my
    other webpages; 4) output the form contents to e-mail boxes. Looked/searched for info &/or a
    tutorial but can't find one. Anybody. Thanks RGPHNX....
  4. Random Message Generator
    (4)
    Here comes another one of Inspired's "amazing" PHP scripts. This little script lets you display
    a random message every time the user visits that particular page. It's not really that useful,
    but it does make the page a bit more "dynamic". CODE $randMsg = array("Hi,
    welcome to my page!", "Hey you! Thanks for visiting!", "Bonjour, mon
    ami!", "So, do you like the site?", "Come one, come all!");
    $MsgNum = count($randMsg); $MsgGenNum = floor(rand(MsgNum)&....

    1. Looking for form, generator

Searching Video's for form, generator
advertisement



Form Generator



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE