CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Simple questio n regarding a record

Print topic Send  topic

Author Message
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.

View profile  Send private message
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
View profile  Send private message
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.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.