CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
Any help on this one would be great...

 



skirrow
stranger

May 5, 2001, 11:09 AM

Post #1 of 2 (1514 views)
Any help on this one would be great... Can't Post

Hi,
Okay. I'm doing a bit of programming, and I want to add a feature so users can choose what fields are requested on signup.
I want the user to be able to set the following:
FieldName (e.g. username), FieldDescription (e.g. What username would you like), FieldType (e.g. text), FieldSize (e.g. 25), FieldNull (e.g. 0 for no, 1 for yes.

I can easily put an option for users to add fields, but now the tricky bit.

How do I firstly, generate an html form from the above. Secondly, print all the field names out in the format:
$field1name|$field2name|$field3name
etc...

Any help would be greatly appreciated!

- Neil


--
http://www.cgi-index.com/
http://www.cgiscriptreview.com/


madhatter
Deleted

Jun 9, 2001, 1:06 PM

Post #2 of 2 (1483 views)
Re: Any help on this one would be great... [In reply to] Can't Post

Well,

open(FILE,">dirs/$user.html");
print FILE "the values your user chose\n";
print FILE "$field1\n$field2\n";
close(FILE);

Would create an html file...
hope that helped :-)


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives