Form - variables not going through

This is a discussion on "Form - variables not going through" within the JavaScript Forum section. This forum, and the thread "Form - variables not going through are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 23rd, 2007, 21:11
Junior Member
Join Date: May 2004
Location: Kansas City
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Form - variables not going through

Hi There,
I've been working on a form that requires multiple selection. For some reason I can't seem to pass all the slected varibles once submitted. Only one would go through. Here is the link if you'd like to see the form.

http://www.grundfos.com/web/HomeUs.n...25737D00681B0A

I need some help with the codes if possible. Here is a small sniplets of my codes for just the selection options
HTML: Select all
<script type="text/javascript">
function selectMultiple()
{
document.getElementById("mySelect").multiple=true
}
</script>
<form>
<input name="orderfield" type="hidden" value="whoareyou,firstname,lastname,telephone,fax,email,companyname,mailingaddress,mailingcity,mailingstate,mailingzip,model"/>
 
<table align="center">
<tr>
<td>Select a vehicle:&nbsp;</td>
</tr>
<tr>
<td><select name="make" style="width:160px;"></select></td>
<td></td>
</tr>
<tr>
<td><select name="type" style="width:160px;"></select></td>
<td></td>
</tr>
<tr>
<td>
<select id="mySelect" name="model" style="width:160px;"></select></td>
<td><input class="button" type="button" value="Reset"> <input class="button" type="button"></td>
</tr>
</table>
These are just some of the codes I've been messing with. The name="model" actually refer to option lists = list of all that models.
I don't know if this is too confusing, but if you can desipher it and help me that would be cool!
Thanks in advance.

Last edited by c010depunkk; Oct 24th, 2007 at 04:51. Reason: quote became html
Reply With Quote

  #2 (permalink)  
Old Oct 24th, 2007, 04:56
c010depunkk's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to c010depunkk
Re: Form - variables not going through

Quote:
Originally Posted by comaiwat View Post
For some reason I can't seem to pass all the slected varibles once submitted.
Where are the variables not getting passed to, a Javascript function or some server side language ?

(If we're talking PHP, then check this out)
Reply With Quote
  #3 (permalink)  
Old Oct 24th, 2007, 13:38
Junior Member
Join Date: May 2004
Location: Kansas City
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Form - variables not going through

It's mostly javascript. I'm attaching the actual html and a screen shot of the result once it's submit.
Attached Images
File Type: jpg screenshot.jpg (55.4 KB, 12 views)
Attached Files
File Type: html GTIregistration.html (23.1 KB, 4 views)
Reply With Quote
  #4 (permalink)  
Old Oct 24th, 2007, 13:53
Junior Member
Join Date: May 2004
Location: Kansas City
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Form - variables not going through

Small cosmetic changes to the html file if it matters. See attachment.
Attached Files
File Type: html GTIregistration.html (23.2 KB, 4 views)
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pull Variables into a form without page refresh Andy K Classic ASP 3 Apr 11th, 2008 16:29
[SOLVED] php re-writing variables in config from form Emzi PHP Forum 2 Jan 22nd, 2008 07:58
[SOLVED] PHP Session Variables in a form DaisyWheel PHP Forum 4 Oct 12th, 2007 09:56
Variables!! bionics PHP Forum 6 Apr 25th, 2006 15:39
Display image/chart depending on variables from a form. Clare73 PHP Forum 5 Jul 20th, 2005 16:07


All times are GMT. The time now is 10:34.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43