![]() |
|
#1
|
||||
|
||||
[Class] Generate Forms Without Using HTML!PHP Code:
Last edited by Elmseeker : 15-Jan-2003 at 20:01.
|
||||
|
#2
|
||||
|
||||
|
This is priceless...
Just a few notes for your list of things 'yet' to do with this class: Stuff that really matter (and usually optional) - Code:
Can you split this into a new thread? I would rename the public methods to something more 'user-friendly', something like PHP Code:
And since you're concatenating the vars, I would suggest using single quotes throughout, it's also good habit to get into... __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#3
|
||||
|
||||
|
selected="true"
and checked="true" Will be almost impossible to code without making the argument list for the function overly long. As for renaming the functions, the way you describe would kind of defeat the purpose of the class wich is partially to save on keystrokes, I tried to keep the names short and simple for just that purpose... |
|
#4
|
|||
|
|||
|
So how would you choose where to send the info (i.e. via email)?
|
|
#5
|
||||
|
||||
RE; Forms without HTML!You send it to your form proccessing script as normal and access the variables the same way...so if I had a form set up like:
PHP Code:
I would have a script within this script file to proccess the information sent by the script as you normall would for any form. I can access the elements something like: echo $_POST["name"]."<BR>".$_POST["pass"]; and they can either be echoed or sent into an email or renamed with something like: $name = $_POST["name"]; Which will now allow me to access tham as I would any other variable...Enjoy! |
|
#6
|
||||
|
||||
|
Elmseeker is there anywhere where you are using this so I can see it in action?
|
|
#7
|
||||
|
||||
|
Quote:
But of course, didn't think I'd write it and not be using it myself do ya? hehe... http://www.kid-stop.com/ both the sign-up and the login forms use this class. :) |
Recent GIDBlog
Problems with the Navy (Officers) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Parsing to HTML document in C++. | markov | C++ Forum | 5 | 21-Jan-2004 07:38 |
| html to php | tenaki | Web Design Forum | 17 | 28-Oct-2003 16:18 |
| Forms in multiple windows | ukrspp21 | MySQL / PHP Forum | 0 | 02-Oct-2003 11:07 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The