SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Mar 2013
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    showing a confirmation page before actually submitting form data into the database??

    HI
    I have a php template which has a form in it.The user will fill this form and hit submit,but I don't want the data to go directly into the database.First I want to show a confirmation page about the things the user just typed.so I'm gonna need two buttons here.A submit and a back button.
    The thing I did is that I use a php controller to start the form template at first when nothing has been set for my values(with an if statement).So the form loads.The user fills the information and hits the submit button.As I set the action of the form to "?confirmation",my controller will load again and this time it knows that it should load the confirmation page.I save the values of the form,in some variables,and then my controller loads the confirmation page,and by using the variables I created,shows the user what he/she just wrote.
    What I can't figure out is the rest of the work.1-I can't pass the variables back to the controller.2-I can't quite figure out how the back button should work

    So I need some advice.And if there is a better idea for doing this,i'd be more than happy to take it
    thanks in advance
    best regards

  2. #2
    SitePoint Member
    Join Date
    Mar 2013
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    anybody here who can help me?

  3. #3
    SitePoint Member
    Join Date
    Mar 2013
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nevermind,I figured it out myself.
    I used hidden inputs with the values being the php variables from the controller.and then passed them back to a submition template.
    thanks anyway


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •