Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Can't get the value out of a select list. Only indexnumbers

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
twintershoven
Smarty n00b


Joined: 18 Feb 2014
Posts: 1

PostPosted: Tue Feb 18, 2014 4:54 pm    Post subject: Can't get the value out of a select list. Only indexnumbers Reply with quote

Maybe this question is asked before, but i can't find the correct answer.

Within a form i have a select list (custnames) whitch is filled from a database.
All the values (customar names) are shown correctly in the list when i click the select box.

After i clicked on the submit button i can't get the chosen name from the select list into a $_POST["custnames"].
The only thing the $_POST has is the index number from the chosen option from the select list.

How can i get the chosen name into the $_POST instead of the index number of that name.

T.i.a.

Regards,

Tino, The Netherlands.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP