Ask a Question related to Dreamweaver AppDev, Design and Development.
-
galeemma #1
Trouble with passing variables
Hi would be really grateful for some help. I am very new to app dev't have
done a tiny bit of programming in the past but am only using the facilities
available in MX 2004 at the moment. ASP/VB script.
I am working on a risk management application and have created a logon form
where currently three types of users can log in - Manager, Locality, Director.
Once logged in the user then enters their code to display risk relevant to
their department. When the code is entered it displays a master detail page
- a list of all the relevant risks and then you can click into the detail for
each risk. Hope you are with me so far!
Once you have clicked into the chosen risk, there may be more than one action
associated with each individual risk. So at this point i want to display the
action master/detail for that particular risk with a link at the bottom saying
"show actions".
I am able to retreive the orignial form variable (the manager code) and pass
this to display on both the master and detail page. But when i try to pass the
same variable to a further page. Its not showing.
Also I am unable to pass the risk ID number through to the next page in order
to pick up any actions associated with this risk.
I am using forms and hidden fields to store the variables and from the
information i have gleaned so far it seems that it should be possible for me to
do this.
I would be really grateful for any assistance.
Kind regards
Emma
galeemma Guest
-
Passing Variables
Hi there, I just managed to install apache2 webserver with php 4.3.8. I'm developing some php files. Previously I used an external webserver but... -
Passing variables from one swf to another
I am facing problem to pass variable from one swf to another. I am using loadMovie to load another swf. how can I pass a variable value to another... -
Passing ASP Variables
I have a form that submits to a SQL database. The table in SQL uses an identity field for the primary key called "entry". This is so I can get the... -
Passing Variables from swf to swf
Is there a good tutorial to do this? I am building greeting cards - I am loading a seperate file before I print them out so I am trying to pass... -
trouble passing arguments
I have a RedHat Linux 8.0 system. I have started the httpd (Apache 2.0.40) process and can now fetch pages from the server. I have a test htlm... -
Paul Whitham TMM #2
Re: Trouble with passing variables
As you have discovered Form variables have a very short life. In fact
without resetting them they are only available on the page after they are
set.
If you wish to preserve your variables over several page then you need to
convert them into session variables. The code is very easy
<%
session("sessionname") = request.form("fieldname")
%>
--
Regards
Paul Whitham
Macromedia Certified Professional for Dreamweaver MX2004
Valleybiz Internet Design
[url]www.valleybiz.net[/url]
Team Macromedia Volunteer for Ultradev/Dreamweaver MX
[url]www.macromedia.com/support/forums/team_macromedia[/url]
"galeemma" <webforumsuser@macromedia.com> wrote in message
news:d42ifu$6gc$1@forums.macromedia.com...have> Hi would be really grateful for some help. I am very new to app dev'tfacilities> done a tiny bit of programming in the past but am only using theform> available in MX 2004 at the moment. ASP/VB script.
>
> I am working on a risk management application and have created a logonDirector.> where currently three types of users can log in - Manager, Locality,page> Once logged in the user then enters their code to display risk relevant to
> their department. When the code is entered it displays a master detailfor> - a list of all the relevant risks and then you can click into the detailaction> each risk. Hope you are with me so far!
>
> Once you have clicked into the chosen risk, there may be more than onethe> associated with each individual risk. So at this point i want to displaysaying> action master/detail for that particular risk with a link at the bottompass> "show actions".
>
> I am able to retreive the orignial form variable (the manager code) andpass the> this to display on both the master and detail page. But when i try toorder> same variable to a further page. Its not showing.
>
> Also I am unable to pass the risk ID number through to the next page inme to> to pick up any actions associated with this risk.
>
> I am using forms and hidden fields to store the variables and from the
> information i have gleaned so far it seems that it should be possible for> do this.
>
> I would be really grateful for any assistance.
>
> Kind regards
> Emma
>
Paul Whitham TMM Guest
-
galeemma #3
Re: Trouble with passing variables
AHAHahahhhh!!! Thank you so much for your reply.
To update, I made significant progress yesterday although I didnt change the
variables to session variables. I shall try that now though. Thank you.
What I did in the end was find the "Go to related page" server behavior and
apply this to the hyperlink taking me to the next page. I checked both URL and
form parameters. This seem to work. Is there any reason why I shouldnt do
this?
Also, I know this may sounds very stupid but am I right in thinking that the
code you have given me above will be placed on the page requesting the
variable, where I have placed the hidden fields?
With very best wishes
emma
galeemma Guest
-
Paul Whitham TMM #4
Re: Trouble with passing variables
You can use the MM behaviour if you like. I personally don't because I find
that the code is a little chunky for my liking.
Yes the code would go on the page that the intial form goes to in its
action.
--
Regards
Paul Whitham
Macromedia Certified Professional for Dreamweaver MX2004
Valleybiz Internet Design
[url]www.valleybiz.net[/url]
Team Macromedia Volunteer for Ultradev/Dreamweaver MX
[url]www.macromedia.com/support/forums/team_macromedia[/url]
"galeemma" <webforumsuser@macromedia.com> wrote in message
news:d455kc$5gn$1@forums.macromedia.com...the> AHAHahahhhh!!! Thank you so much for your reply.
>
> To update, I made significant progress yesterday although I didnt changeand> variables to session variables. I shall try that now though. Thank you.
>
> What I did in the end was find the "Go to related page" server behaviorURL and> apply this to the hyperlink taking me to the next page. I checked bothdo> form parameters. This seem to work. Is there any reason why I shouldntthe> this?
>
> Also, I know this may sounds very stupid but am I right in thinking that> code you have given me above will be placed on the page requesting the
> variable, where I have placed the hidden fields?
>
> With very best wishes
> emma
>
>
Paul Whitham TMM Guest



Reply With Quote

