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
Old 01-24-2008, 11:51 AM On select listbox
Junior Talker

Posts: 2
Trades: 0
Hi guys, my first post!
it is a small one,

I got a listbox on my site, in it are the numbers 1 to 6
The second listbox has dates, but this listbox only can be filled if in the firstlistbox a number is chosen.

Now my question is, whit what code can is say, that there must be performed an action after a number is chosen.

Code:
if(isset($_POST['teamnr']))
	{
			$teamnr = $_POST['teamnr'];
			location("./index.php?menu=archief_sen&teamnr=$teamnr");
	}
now i got isset as you can see, but that doesn't trigger my redirect.
extractor is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-24-2008, 12:08 PM Re: On select listbox
maxxximus's Avatar
Extreme Talker

Posts: 219
Name: Rob
Location: UK
Trades: 0
This should do it - you need the header function http://uk.php.net/header
PHP Code:
<?php if(isset($_POST['teamnr']))
    {
            
$teamnr $_POST['teamnr'];
            
            
$redirect="/index.php?menu=archief_sen&teamnr=$teamnr";
        
header("Location: ".$redirect );
    }
    
?>
maxxximus is offline
Reply With Quote
View Public Profile
 
Old 01-24-2008, 12:20 PM Re: On select listbox
Junior Talker

Posts: 2
Trades: 0
mmm actualy the redirect cody I could do myself, my question is, how can I see that someone has set a number in the listbox, with isset that doesn't work

Last edited by extractor; 01-24-2008 at 01:25 PM..
extractor is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to On select listbox
 

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.26515 seconds with 12 queries