martin47
Posts: 35
|
| Posted: 08/11/2008, 9:57 AM |
|
Greetings. I'm trying to achieve something simple but can't fiugre out how.
I created a record with a drop dwon menu. It does not have to update or insert anything on a db, it is just a "province selector". I need the selected option to be sent to another page when the button is clicked.
I cant' figure out how to make it work. It just returns to the same page. The "return page" doesn't work either.
|
 |
 |
Markie
Posts: 251
|
| Posted: 08/13/2008, 11:25 AM |
|
martin47,
can you link the selected option like this:
<a href="otherpage.php?province=Province1">
as it is the most easy way, however you can also do the trick it with a simple form, take a look at this page for more details:
http://www.php.net/variables.external
Good luck
_________________
The Netherlands, GMT+1
Tools: CCS 5.1, Windows 7, Navicat, Ultraedit
Local server: XAMPP with Apache, php and MySQL
Webserver: Windows 2008 IIS 7, php and MySQL |
 |
 |
aondecker
Posts: 58
|
| Posted: 08/13/2008, 1:29 PM |
|
Quote martin47:
Greetings. I'm trying to achieve something simple but can't fiugre out how.
I created a record with a drop dwon menu. It does not have to update or insert anything on a db, it is just a "province selector". I need the selected option to be sent to another page when the button is clicked.
I cant' figure out how to make it work. It just returns to the same page. The "return page" doesn't work either.
On your before Submit, or Before Insert, place some custom code that has something like the following:
global $Redirect
$Redirect = "yourpage.php?YourVariable =".$Form->component->GetValue();
thats should redirect you to your page and give your variable you are passing the value of your listbox.
|
 |
 |
|