Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Making A Simple Webpage Generator: Part 2, The Form
Rating 3 V
SunBlind
post Jun 29 2005, 12:56 AM
Post #1


Advanced Member
Group Icon

Group: Members
Posts: 128
Joined: 27-June 05
From: Belington, WV
Member No.: 6,653



This tutorial is based on a webpage generator I made (for my users with little or no HTML knowledge) after spending about 3 months collecting javascripts, code snippets, layouts, and all that other good stuff. Since this takes quite a few steps, and I'm dead tired, I'll be posting this tutorial in 3 parts:

Part 1- Create The Template
Part 2- Make The Form
Part 3- Fill The Template

The form is what collects all the data from the user to be passed into the template. Hopefully, you have some basic knowledge on html forms, so I'm not going to go into a lot of detail on how to make one. Try checking out htmlgoodies.com if you are inexperienced with the latter.

1. Create a new html page named form.html. It's not really vital, but I like to divide my forms into a table to keep it a little neater and easier to read. Like this.

2. The page we will be posting the data to be processed to will be called generate.php... Therefore, your form tag should read like so:
CODE
<form action="generate.php" method="post">


3. For each webpage attribute you would like to generate, create an input with a corresponding variable name. Example:
CODE
Background Color: <input type="text" name="bgcolor">
Text Color: <input type="text" name="textcolor">


4. After all of your attributes and their inputs have been accounted for, insert your submit button, close the form tag, and proceed to the next step because you're finished your form! smile.gif

This post has been edited by SunBlind: Jun 29 2005, 03:40 AM
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Code To Send An Email From A Form(7)
  2. Creating A Game In Rpg Maker 2000/2003(18)
  3. Creating You Own Game In RPG Maker 2000/2003(12)
  4. (Nearly) Ultimate Music Posting Guide(11)
  5. Flash Site Software(11)
  6. Yahoo! Messenger Protocol Tutorial - Part 2(2)
  7. Alt Txt Tooltip Popups Over Text Links, How To Do?(11)
  8. PHP Tutorial: Form Verification And Simple Validation(12)
  9. VB.NET: MS-Access Interaction Tutorial (Part I)(18)
  10. Advice About Making A Text Based Game(9)
  11. [tutorial] Basics Of C Programming - Part 1(11)
  12. Programming In Glut (lesson 4)(7)
  13. Making A Turn Based Game Like Ogame(9)
  14. How To Boot A Pc From Your Usb Flashdisk(17)
  15. [photoshop] Making An Orb(1)
  1. Making Xp Starts 60% Faster(3)
  2. Very Simple Login-script(18)
  3. A Simple Register Script(3)
  4. Gimp: Working With Text(5)
  5. Need Help Making My Ftp Work(14)
  6. Help With Making A Textbased Game(2)
  7. How To: Make A Simple Php Forum System(4)
  8. Simple Java Question(3)
  9. Help With Making A Textbased Game(6)
  10. Request Form Site Suspended(4)
  11. Making Xp Look Like Vista(3)
  12. Making Educational Game(3)
  13. Design A Contact Form In Flex Part 1(0)


 



- Lo-Fi Version Time is now: 5th September 2008 - 09:31 AM