Solved

Using Spry Validation Select to submit choices for shopping

Posted on 2008-10-29
2
542 Views
Last Modified: 2015-01-05
I am working on creating a form that allows you to choose options from multiple SPRY generated drop down menus. I need to figure out how to make it so that when the Submit button is hit it initializes the correct string to link to depending on the selections made on the drop down menus.
0
Comment
Question by:nearrealtime
2 Comments
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 500 total points
ID: 22846668
Hi nearrealtime,

Once Spry generates the menus, you are submitting normal HTML form data.  So all you need to do is combine the variables in whichever server side language you are using.  

For example, if I sumbit a form that has three menus in it to a PHP script via the POST method and the menus are named menu1, menu2, menu3 with selected values of "green", "small", "gift" respectively:

<?php

$var1 = $_POST['menu1'];
$var2 = $_POST['menu2'];
$var3 = $_POST['menu3'];

$thenewvar = $var1." ".$var2." ".$var3;

print $thenewvar;
?>

Would output:

green small gift


0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question