On Fri, May 9, 2008 at 6:48 PM, globalrev <[EMAIL PROTECTED]> wrote:
>
> <form action="">
>    <textarea rows="10" cols="30">
>    </textarea>
>    <input type="submit" value="submit" /><br />
> </form>
>
> nut how do i get the actual input what variable do i access?
>
> encrypt = i.username i used before in a username+password-form.
>
>
> and how do i get the value form the dropdown?

globalrev,
i think you should read about POST and GET a little bit before asking
how to do everything.
Dont get me wrong, it is not my intention to insult you or anything,
but once you readed about
these methods you'll see how simple they are.

http://www.w3.org/TR/html401/interact/forms.html
http://www.w3schools.com/php/php_post.asp (i know its a PHP example,
but its basically the same thing)

BTW. In order to receive the data you're typing in the form fields (be
it input, select or textarea), you *must*
add a 'name' attribute to them.


Try to figure out why this example works fine regardless i'm not using
username or passwords fields anymore.
It's basically the same example i gave you before, but with a little twist.
---
HTML:
my name: <input type="text" name="me" /><br />
my friend's name: <input type="text" name="friend" /><br />
my pet's name: <input type="text" name="pet" /><br />

- - - - - - - -

PYTHON-WEBPY:
i = web.input() # here we take the POST data

my_name = i.me
my_friends_name = i.friend
my_pets_name = i.pet
----

Regards,
Mauro

-- 
JID: [EMAIL PROTECTED]

----BEGIN GEEK CODE BLOCK----
Version: 3.12
GCM/O d->dpu$ s-:- a-->a+++$ C+++
LU P+ L++ E W+++ N !o K w O !M !V
PS+ PE Y+ PGP t 5- X R tv++ b- DI D++ G+ e
h!>h-- r>r+++ y+
----END GEEK CODE BLOCK----

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to