Solved

Using Spry Validation Select to submit choices for shopping

Posted on 2008-10-29
2
560 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Businesses who process credit card payments have to adhere to PCI Compliance standards. Here’s why that’s important.
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…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

690 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