September 10, 2010, 05:14:48 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Alternative FF download location here !
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Show form input after submiting form  (Read 1327 times)
erik
Newbie

Offline Offline

Posts: 2


« on: May 11, 2006, 10:21:40 am »

Hi there,

I'm having a problem with retrieving submitted user input after it's been send.

Here is the situation:
Form A has on it's first page three bullet buttons which the user can choose from. Then on the second page the user can type in his adres, email and so on. Then the form is submitted. The user get's the notification that the form has been send. And on the third page I want to show the user what he has submitted in a static text/html element. How can this be done?
My understanding of FF is limmited to the basics so I need some help here.
Logged
bsmiffy
Jr. Member
**
Offline Offline

Posts: 64


« Reply #1 on: May 11, 2006, 02:51:16 pm »

Hi erik, I'm also new to FF but I had a similar problem and the answer i received worked and my example is:

on the data entry page in the validation script I put the following code:

$ta_sp_amount = ff_getElementByName('sp_amount').value;

    ff_getDivByName('ta_sp_amount_text').innerHTML =
    '<strong>Your total Sandwich amount is: £' + $ta_sp_amount + '</strong>';

I store the value i need in a variable eg   $ta_sp_amount

I then put the text and value into a field (text/html) ta_sp_amount_text which is on my display page.

when i get to the display page the following would be displayed:

Your total Sandwich amount is: £1.99

Hope that helps

Brian
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by SMF © 2001-2006 Lewis Media
| Terms of Use | Privacy | Sitemap |