Page 1 of 1

Accessing POST-vars

Posted: Tue Jul 08, 2008 3:06 pm
by philip
Hi,

I try to access a POST-variable within a form send by another form.

The URL looks like this:
http://mydomain.com:8080/form.do?[b]ema ... domain.com[/b]&submit=Send&agnCI=1&agnFN=resend_confirm_send
I tried this HTML-code in the form:

Code: Select all

<input type="text" name="email" value="$!email">
but it doesn't work.

Any ideas?

Posted: Wed Jul 09, 2008 1:46 pm
by philip
I found something in the ScriptAction_Documentation:
$requestParameters.get<String key>()
------
get value from HTML form field (key in upper case)
But following code doesn't work:

Code: Select all

#set ( $email = $requestParameters.getEMAIL() )
What am I doing wrong?

Posted: Mon Apr 19, 2010 12:49 am
by valead
Probably doesn't help you a lot now, but the documentation must be wrong - this works:

#set( $mail = $requestParameters.email )