Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
Help Me - (Api Paypal) [2021]
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="JayC" data-source="post: 470638" data-attributes="member: 36373"><p>Have an array in PHP that stores the values associated with an ID field</p><p></p><p>When They select the item have it be a dropdown selection list:</p><p></p><p> <select></p><p> <option value = "1"> Package 1 </option></p><p> <option value = "2"> Package 2 </option></p><p></select></p><p></p><p></p><p>Filter the select input, make sure its a number, make sure ITS Within the indexes of your array:</p><p></p><p></p><p><? php</p><p> $ array = {{"Name", "Price"}, {"Package 1", "10"}, {"Package 2", "15"}};</p><p></p><p>$ selectedArr = $ array [select] // = the value select the selection box of</p><p></p><p>$ packagePrice = $ selectedArr [1];</p><p>?></p></blockquote><p></p>
[QUOTE="JayC, post: 470638, member: 36373"] Have an array in PHP that stores the values associated with an ID field When They select the item have it be a dropdown selection list: <select> <option value = "1"> Package 1 </option> <option value = "2"> Package 2 </option> </select> Filter the select input, make sure its a number, make sure ITS Within the indexes of your array: <? php $ array = {{"Name", "Price"}, {"Package 1", "10"}, {"Package 2", "15"}}; $ selectedArr = $ array [select] // = the value select the selection box of $ packagePrice = $ selectedArr [1]; ?> [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Help Me - (Api Paypal) [2021]
Top