Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 What are the different methods to take input from a user?
Index -> Programming, PHP -> PHP Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
lastlegion




PostPosted: Sun Jun 21, 2009 11:55 am   Post subject: What are the different methods to take input from a user?

Hey I know that you can take input from a user via a html form and then use $_POST[] or $_GET[]
but is there any other way to get input without using html forms?
Sponsor
Sponsor
Sponsor
sponsor
DtY




PostPosted: Sun Jun 21, 2009 2:39 pm   Post subject: RE:What are the different methods to take input from a user?

Not really, for web applications.
If you really want to, you can user javascript's confirm(); prompt(); et cetera, then send it back with ajax, but that's probably more than you'll want to do.

If you're doing console programming, you can get input from standard input.
jeffgreco13




PostPosted: Mon Jun 22, 2009 8:33 am   Post subject: RE:What are the different methods to take input from a user?

maybe if u gave us an idea of what you want to do..
lastlegion




PostPosted: Mon Jun 22, 2009 11:00 am   Post subject: Re: What are the different methods to take input from a user?

Like in ruby gets can be used to take input from user. Is there anything of that sort in PHP?
DtY




PostPosted: Mon Jun 22, 2009 11:53 am   Post subject: RE:What are the different methods to take input from a user?

Not for web based development.
If you are interacting with the user via the command line (like you normally would in ruby), you can read from the file identifier STDIN using the normal file functions.
Display posts from previous:   
   Index -> Programming, PHP -> PHP Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: