We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,530 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

CGI: Pass values after submit

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

1
Contributor
1
Reply
1 Day
Discussion Span
1 Year Ago
Last Updated
3
Views
Question
Answered
dvirdc
Newbie Poster
2 posts since Apr 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0
Question Self-Answered as of 1 Year Ago

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

thanks

dvirdc
Newbie Poster
2 posts since Apr 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0610 seconds using 2.66MB