Jump to content
xisto Community
Sign in to follow this  
biggiebi

Generate?

Recommended Posts

What in the World are you asking about. I was half tempted to just delete this topic due to its short incoherent nature. If you want help with something, you have to explain yourself.

 

For example, what might you have in this drop down menu and what might the user type in the input box?

Given the selections and data from the user, what kind of text might be generated?

 

For example, if you had a DAY, MONTH, and YEAR drop down menu and asked the user to input his FIRST NAME and LAST NAME; are you expecting the text generator to produce something like this:

"Hello John Doe, you are 25 years old!"

 

See how it is difficult to understand what you want?

 

vujsa

Share this post


Link to post
Share on other sites

I'm not a type of person that explains so yeah sorry.

 

Age : dropdown(1,2,3,4,5)

City : dropdown(Oakland,L.A,Seatle)

 

and when you click submit

 

something like

 

5

Seatle

 

shows

Well, assuming your drop down menu is named "age" and the input name is "city", the PHP required to generate the text would look something like this if you used the "POST" method for your form:

<?phpecho "Your age is $_POST['age'] and you live in $_POST['city']!";?>
That would produce this:

Your age is 5 and you live in Seattle!

 

Hope this helps,

 

vujsa

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.