Current location: Hot Scripts Forums » General Web Coding » JavaScript » Passing javascript variables to new page...


Passing javascript variables to new page...

Reply
  #1 (permalink)  
Old 01-25-05, 05:44 PM
Tim Mousel Tim Mousel is offline
Wannabe Coder
 
Join Date: Jan 2005
Posts: 157
Thanks: 0
Thanked 0 Times in 0 Posts
Question Passing javascript variables to new page...

Hi,

Here is my javascript colorpicker:

http://www.drycleanersrelief.com/cou...eator_orig.php

I need to pass the selected variables to a new php page but don't know how to do it since the <form> tag is already being used.

Please let me know.

Thanks,

Tim
Reply With Quote
  #2 (permalink)  
Old 01-29-05, 03:23 PM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
Do you need to use the variable values in the php code?
Then do this: <input type="submit" value="Preview"
onclick="this.form.action='coupon_creator_preview. php?var1="+variable1+"&var2="+variable2+"'" />
If not, use cookies to store the values and read the cookie on the new page to load the values back into the variables.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Classified Ads skipper23 Perl 3 11-22-05 02:22 AM
Passing text vs numeric data as ID from one ASP page to another arobbo61 ASP 7 09-24-04 01:02 AM
passing value from JavaScript scorpioy PHP 0 05-22-04 07:31 PM
pass variables to a .php page within a page davidcsi PHP 2 04-21-04 07:34 PM
Classified Ads skipper23 Perl 2 12-30-03 03:43 AM


All times are GMT -5. The time now is 10:41 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.