> QUESTIONS... of course...
>
> I have three questions about expanding the form.
>
> I thought that I could add something like
>
> [session nextpage=aboutus]
Just a typo. I've done this myself several times:
[session nextpage aboutus]
> just after the [session mail] so that after submission, it would go to the
> aboutus page.... however I either misunderstood what it does or it didn't
> work.
>
> I could not find a good example of how the nextpage worked.
Just like any other command--you can't put in the equal sign like
that. Technically it is
[session field=nextpage value=aboutus]
The way we normally write it is just a shortcut.
> Also, I would like to add additional info to the email that is not
> necessarily provided by the visitor.
>
> 1) the ability to add the IP and hostname (via the plugin web_visitor_info)
> so that when the email is sent, that info is included.
>
> ex...
>
> IP: {wv-remote_addr} [{wv-remote_host}]
Try using a template for the mail body:
[box mybody][box]
[session who {id}]
[session remotehost '{wv-remote_host}']
...
/*
[[#mail]]
Stuff from my website:
From: {+who}
Host: {+remotehost}
{+mybody}
[[#end]]
*/
Insert the form lines into the form and the template at the end of the
same page. You might have to tinker some to get it right. I'm not sure
we have all the features of the mail function documented. At some
point I'd like to go back and rework it some more. Perhaps simplify
it. And document it more thoroughly. And then rewrite the email plugin
to give it more advanced capabilities.
> 2) I would like to add to the subject unique text so that I know where it is
> coming from. If the user enters in Subject: Looking for help, have the
> subject end up being sent as something like
>
> Subject: WebForm - Looking for help
Try this:
[text mysubject]
[session subject "WebForm - {=mysubject}"]
> 3) lastly, the email verification example on the Boltwire site didn't work.
> Is there a working example. While not actually verifying the email address,
> at least the format could be validated.
I just tried this snippet and it seemed to work:
[form]
Email: [text Email] [submit Check]
[session validate_Email "/^...@.+\..+$/ ? : warn=This email fails"]
[session warn]
[session nextpage "main"]
[form]
Cheers,
Dan
--
You received this message because you are subscribed to the Google Groups
"BoltWire" 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/boltwire?hl=en.