Solved

Using Spry Validation Select to submit choices for shopping

Posted on 2008-10-29
2
548 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

749 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