Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Passing oracle fields in SQL using option value after Submit

Passing oracle fields in SQL using option value after Submit

Passing oracle fields in SQL using option value after Submit

I have an oracle table which has about 10 fields. I am displaying all the fields as "option" in html.
The value is the field name from the oracle table.
The user will select the fields from the left box & move to box on the right.
The user clicks on submit button & the fields selected will be passed in an oracle query to display the values.
Note, I have to pass the oracle fields in the SQL.
How can this be done.
Please find attached incomplete PHP code below along with the screen shot (FieldPass.doc).
The doc file show the list of fields on the left & when some fields are selected and click on "Add" button to move the fields to the right box. After clicking on Submit button, the values will be passed in the Select query to the data from oracle table.


RE: Passing oracle fields in SQL using option value after Submit

No PHP code can be seen.

With that said, your form should be passing the values to PHP in the $_POST or $_GET variables depending on your form's method. Since you are using a list, you can give the list a name with "[]" brackets, and PHP will turn that variable into an array, so you can see all the selected values.


<select name="oraclefields[]">

Then you can just address them in PHP as $_POST['oraclefields'], and it will be an array you can manipulate normally.

Phil AKA Vacunita
OS-ception: Running Linux on a Virtual Machine in Windows which itself is running in a Virtual Machine on Mac OSx.

Web & Tech

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close