Welcome Guest, Not a member yet? Register   Sign In
Keep upload data in memory on a multiple step form [SOLVED]
#2

[eluser]Narkboy[/eluser]
Quick answer - you can't.

HTML is stateless; any request is made without knowledge of any other request.

So - how can we cheat a little?

1) Change to a single form. Far and away the easiest way to do it.
2) Store the data from the first part in a database or text file or anything that can be read by the second part of the script.
3) Use AJAX to either hold the form data and send as one lump, or display the different forms witout actually sending the data to the server.

There are other ways - effectively you must either 1) eliminate the two seperate server calls, or 2) store the data in a more premenant way that php vars.

I would strongly reccommend that you keep it simple. Do you have an unbreakable requirement to have a two-part form? If not, then do it with 1 form.

/B


Messages In This Thread
Keep upload data in memory on a multiple step form [SOLVED] - by El Forum - 10-25-2010, 09:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB