/    Sign up×
Community /Pin to ProfileBookmark

how use the id of combobox list?

hi,
i need to use the id of a comobox list i have see a example but i can´t find where i see that i want do something like that:

<select size=”1″ class=”inputbox” name=”teste”>

<option>Hardware</option> id 1

<option>Serviços</option> id 2

and them when i submit the form i want receive the id and not the value of a combo how can i do that?
thanks a lot for your help
?

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@afigueroaOct 23.2007 — <option name="id1">hardware</option>

which ever language you're using to manipulate the data, you'd call 'teste'
Copy linkTweet thisAlerts:
@KDLAOct 23.2007 — Do you mean that you want an id for the value passed?
<i>
</i>&lt;select size="1" class="inputbox" name="teste"&gt;
&lt;option value="id1"&gt;Hardware&lt;/option&gt;
&lt;option value="id2"&gt;Serviços&lt;/option&gt;
&lt;/select&gt;

KDLA
Copy linkTweet thisAlerts:
@jasonxauthorOct 24.2007 — i using php
Copy linkTweet thisAlerts:
@jasonxauthorOct 25.2007 — i using php and yes i want get the id if the value that i selected

thanks?
Copy linkTweet thisAlerts:
@lotuzwineOct 25.2007 — you should post this question in the php forum then =)
×

Success!

Help @jasonx spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...