Hey.
I'm writing a script that processes some data.
The script creates a HTML page which contains a form that calls (action=) the same script and changes according to data asked.
So the user asks for something, the script goes to a DB, gets it and prints it into the HTML on a table.
Easy. Now the problem-
The form contains regular textboxes and selection (with options). I'd like to keep the values that the user asked for to be shown on the results page which is created by the same page (script).

Hopefuly I made my self clear :)

Any thoughts?

Thanks

ok i solved it by comparing the values i put in the <option> with those i pass and put 'selected' on selected option.

thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.