how to make a generator?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
niceblue00
Forum Newbie
Posts: 3
Joined: Mon Jun 02, 2008 5:38 pm

how to make a generator?

Post by niceblue00 »

thanks
Last edited by niceblue00 on Sun Jun 15, 2008 8:49 am, edited 1 time in total.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: how to make a css generator?

Post by RobertGonzalez »

How much PHP do you know?
niceblue00
Forum Newbie
Posts: 3
Joined: Mon Jun 02, 2008 5:38 pm

Re: how to make a css generator?

Post by niceblue00 »

Everah wrote:How much PHP do you know?
not really good.. but if you post the code then tell me what to do i can get it...
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: how to make a css generator?

Post by Benjamin »

Your first step is to make the form. Have you made one yet?

Then you can start here for the PHP aspect: http://us.php.net/manual/en/language.basic-syntax.php
niceblue00
Forum Newbie
Posts: 3
Joined: Mon Jun 02, 2008 5:38 pm

Re: how to make a css generator?

Post by niceblue00 »

thanks astions!

no i dont make one .. only the problem is i dont know how to transfer the generate code to become a code,,, how to do that? what is the code?
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: how to make a css generator?

Post by onion2k »

Noone is going to write this for you. Stop asking for people to post code. We're happy to help you learn by helping figure out why your code isn't working... but that requires you write some code first.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: how to make a css generator?

Post by RobertGonzalez »

Try writing some code yourself. When it breaks, come back here, post the code and tell us what broke. We will try to help you code the fix and prepare for the next steps.
User avatar
[UW] Jake
Forum Commoner
Posts: 25
Joined: Sun Jun 01, 2008 9:04 pm
Location: USA

Re: how to make a css generator?

Post by [UW] Jake »

1. Make a form in your favorite WYSIWYG, such as Dreamweaver.
2. Read up on GET / POST. With PHP when they submit the form, you can use $_POST['name_of_field'] to access what data they submitted. Then you plug that into a pre-made css code or whatever you want to generate.

You've been shown the door- but you must walk through it!
User avatar
Frozenlight777
Forum Commoner
Posts: 75
Joined: Wed May 28, 2008 12:59 pm

Re: how to make a css generator?

Post by Frozenlight777 »

This is somewhat humorous.
1) Google how to make an html form
2) Google how to take the fields and POST them
3) Google how to inject php variables into CSS

I'm glad no one has actually written the whole thing out for him.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: how to make a css generator?

Post by RobertGonzalez »

Frozenlight777 wrote:I'm glad no one has actually written the whole thing out for him.
Generally you will find that we are very helpful bunch. You will also find that we will not ever do anyone's work for them. :mrgreen:
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: how to make a css generator?

Post by onion2k »

Everah wrote:You will also find that we will not ever do anyone's work for them. :mrgreen:
Exactly. My boss has a hard enough time getting me to do my own... :twisted:
Post Reply