No worries chris, I will try to give you a hand.

On Feb 17, 5:05 pm, murray3 <[email protected]> wrote:
> DenesL.
> thanks for help, but I am still having prob's with my code.
> as previous mywiki example
> in view:
> {{dsp=form.custom.dspval}}
> {{inp=form.custom.inpval}}
> {{lbl=form.custom.label}}
> ...
> <form action=" {{=XML(inp.body,sanitize=True)}} " method="post">

action should be empty for self-submission,
and it does not hurt to add encoding type,
so your form should start with:
<form action="" method="post" enctype="application/x-www-form-
urlencoded">

> <textarea style="width: 99%; align: center; height:100px;background:
> snow;" id="wikibody1" name="data"name="wikibody1">

every element returned by a form should have a name (and only one
name) identical to your database field, so your textarea should have
name="body"
I would recommend downloading the very handy HTML 4 reference
available in different formats from
http://htmlhelp.com/reference/html40/

> {{=form.custom.dspval.body}}

this is fine but if you have
{{dsp=form.custom.dspval}}
at the top (as you do) this can shortened to
{{=dsp.body}}
the idea is to type less :) specially in long, complex forms

> </textarea>
> <input type="submit" value="Submit"/>
> </form>
>
> just clears the form and does not save to db, sorry I am a little slow
> but I am trying to learn this stuff (slowly), this is a hobby:) I just
> want to save my nicedit textarea data to the db
> and I wanted a larger text area than SQLFORM() default.

I have not used nicedit so you must read up on it and see what is
required to use it.
As for saving the textarea to the DB that is done automatically in
web2py during form.accepts

> thanks
> chris

Hope this helps.
Denes.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to