Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
{ stage1.php?variable= }Multiple
Old 07-06-2005, 01:41 AM { stage1.php?variable= }Multiple
lothop's Avatar
Ultra Talker

Posts: 303
Trades: 0
Im not sure what name to give this Question.

But anyhows, here is my problem/question.

I have a 3 part form, With which drop boxes send it to a link. EG.

HTML Code:
<select name="menu1"  onChange="MM_jumpMenu('parent',this,0)">
	        <option value="stage1.php?c=" selected>link</option>
          </select>

<select name="menu2"  onChange="MM_jumpMenu('parent',this,0)">
	        <option value="stage1.php?c= &y=" selected>link</option>
          </select>

<select name="menu3"  onChange="MM_jumpMenu('parent',this,0)">
	        <option value="stage1.php?c= &y= &m=" selected>link</option>
          </select>
So when the person selects the option on one drop box, it takes them to stage1.php?c=blahblah.

But im not sure on how to make it so all it does is overwrite what " C, Y or M " Equals.

So that the starting link starts as "stage1.php?c=&y=&m=" and each time they click on the drop down box, it just changes what " C, Y or M " Equals. So that they don't have to select things in order.

Erm, if this isnt clear anough please let me know. *really stuck*
__________________
Websites Created;
warscope.com
ratepayers.org.nz
lothop is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-06-2005, 11:54 AM
Uche's Avatar
Extreme Talker

Posts: 174
Location: Nigeria/Lagos
Trades: 0
elaborate more
__________________
Life is just lyke a school where everybody goes to learn one or two thing. the more u school, the more u learn more about school..The more we live our lifes.. the more we learn more about life.

Please login or register to view this content. Registration is FREE
Uche is offline
Reply With Quote
View Public Profile Visit Uche's homepage!
 
Old 07-07-2005, 01:10 AM
lothop's Avatar
Ultra Talker

Posts: 303
Trades: 0
There is a link called "Company" The user clicks on it, and it takes them to index.php?c=1

Then there is a link called "Month" The user clicks on it, and it takes them to index.php?c=1&m=2

Then there is a link called "Year" The user clicks on it, and it takes them to index.php?c=1&m=2&y=3

But then if the click a link, which makes "c=2" it keeps m=2, and y=3.

So that link would take them to index.php?c=2&m=2&y=3.

So instead of having the "Company" link being <a href="index.php?c=1">Company</a>
and "Year" link being <a href="index.php?c=1&m=2&y=3">Year</a>

They are in this form
(% being any character/number)
<a href="index.php?c=%&m=%&y=%">Company</a>
<a href="index.php?c=%&m=%&y=%">Month</a>
<a href="index.php?c=%&m=%&y=%">Year</a>

for example, if i had two links that one made c=1 and the other made c=2
and have one link for month, so that the C value could change without it being pre-set within the Href.

Thankyou
__________________
Websites Created;
warscope.com
ratepayers.org.nz
lothop is offline
Reply With Quote
View Public Profile
 
Old 07-07-2005, 01:25 AM
lothop's Avatar
Ultra Talker

Posts: 303
Trades: 0
Cool, I've fixed the problem.
__________________
Websites Created;
warscope.com
ratepayers.org.nz
lothop is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to { stage1.php?variable= }Multiple
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29042 seconds with 12 queries