Help!! Newbie going crazy!

A

Angi

Ok...I'm losing my mind over this!! This should be easy but it's not for me!

I need to carry values from one webpage form to another. I can't use .asp, I
have to use html or dhtml. I've tried going through the VBA help files and i
can't figure it out. I don't know what how to refer to the option button that
was selected.

Here's what I'm trying to do, so if there is an easier way to do it, PLEASE let
me know!

Select item (item# saved)
Select color (item # and color ID now saved)
Order form (info from above is already entered..only personal info
needs to be entered)

Sounds good in theory! Can it be done?? I'm so used to working with If...then
statements, I can't see past my nose! Thanks in advance!!!
 
S

Stefan B Rusynko

Using the javascript like that at
http://www.developer.irt.org/script/15.htm
But in your case:
- repalce the months w/ your items (field name itemNo) and
- add a second option list for your colors (field name colorID)
change the onclick to
onClick="window.location.href = 'nextpage.html?' +
this.form.itemNo.options [this.form.itemNo.selectedIndex].text +
this.form.colorID.options [this.form.colorID.selectedIndex].text"

Then on your second form (nextpage.html) add the same 2 fields itemNo and colorID
and inside the form add the script for the field values

<script language="JavaScript"><!--
document.formName.itemNo.value = location.search.substring(1);
document.formName.colorID.value = location.search.substring(2);
//--></script>



| Ok...I'm losing my mind over this!! This should be easy but it's not for me!
|
| I need to carry values from one webpage form to another. I can't use .asp, I
| have to use html or dhtml. I've tried going through the VBA help files and i
| can't figure it out. I don't know what how to refer to the option button that
| was selected.
|
| Here's what I'm trying to do, so if there is an easier way to do it, PLEASE let
| me know!
|
| Select item (item# saved)
| Select color (item # and color ID now saved)
| Order form (info from above is already entered..only personal info
| needs to be entered)
|
| Sounds good in theory! Can it be done?? I'm so used to working with If...then
| statements, I can't see past my nose! Thanks in advance!!!
 
A

Angi

Stefan,
Thank you so very much!! I haven't got it to work yet, but I will. That
site is soooo very helpful!! Again, I can't thank you enough. Anymore
questions, I'm sure I'll be back!

Best regards,
Angi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top