?
Solved

Using Spry Validation Select to submit choices for shopping

Posted on 2008-10-29
2
Medium Priority
?
567 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 2000 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

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 …
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
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…
Suggested Courses
Course of the Month12 days, 13 hours left to enroll

777 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