Generate?

free web hosting
Free Web Hosting > Computers & Tech > Programming > Scripting > PHP

Generate?

biggiebi
How do I make a text generator?

Like have a multiple dropdown and text box. Then if someone input some info and click summit it generate a text?

Reply

vujsa
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

Reply

biggiebi
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

Reply

vujsa
QUOTE(biggiebi @ Oct 15 2007, 07:05 AM) *
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:
CODE
<?php
echo "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

 

 

 


Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*







*SIMILAR VIDEOS*
Searching Video's for generate,
advertisement




Generate?