Weird problem with a form

M

Mangler

I have a form on a page that has to hidden fields that simply hold a
value.
There is a link in that form that when pressed calls a javascript
function to open a new window.
All ok so far.
The page that opens depends on those 2 hidden fields mentioned before,
this is where the issue is happening.
On my local testing server everything works great yet on the
production server the values of the fields do not get passed to the
new page like on the testing server.

Testing server : Vista Home Premium, IIS 7
Production Server : Windows server 2003 IIS ( the version that comes
standard on this os )

Here is the form :

<form action="" method="post" name="form2" id="form2" >
<img src="images/print1.png" alt="Printer Friendly" width="53"
height="53" onclick="MM_openBrWindow
('submissionReportPrintFriendly.asp?start=<%=Request("start1")
<input type="hidden" name="start1" id="start1" />
<input type="hidden" name="end1" id="end1" />
</form>

I cannot figure out why this works perfectly on the testing server but
not the production server. Any Ideas?
 
A

Adrienne Boswell

Gazing into my crystal ball I observed Mangler
I have a form on a page that has to hidden fields that simply hold a
value.
There is a link in that form that when pressed calls a javascript
function to open a new window.
All ok so far.
The page that opens depends on those 2 hidden fields mentioned before,
this is where the issue is happening.
On my local testing server everything works great yet on the
production server the values of the fields do not get passed to the
new page like on the testing server.

Testing server : Vista Home Premium, IIS 7
Production Server : Windows server 2003 IIS ( the version that comes
standard on this os )

Here is the form :

<form action="" method="post" name="form2" id="form2" >
<img src="images/print1.png" alt="Printer Friendly" width="53"
height="53" onclick="MM_openBrWindow
('submissionReportPrintFriendly.asp?start=<%=Request("start1")
%>&amp;end=<%=Request("end1")%>','','scrollbars=yes,resizable=yes')" /
<input type="hidden" name="start1" id="start1" />
<input type="hidden" name="end1" id="end1" />
</form>

I cannot figure out why this works perfectly on the testing server but
not the production server. Any Ideas?

There are a few things here:
1. You do not need to have a "Printer Friendly" page, just a print
stylesheet, eg:

<div id="nav">
<ul><li><a href="index.asp">Home</li></ul>
</div>
<div id="content">
<table>
....
</table>
</div>
</div id="footer">
some stuff
</div>

where your print stylesheet has #nav, #footer {display:none}

2. You have no values in the hidden input elements. What are the
values? How are you going to pass values when there are none?

3. There is no need for a form here at all. A link (with javascript to
open a new window - if you must) to the other page is just fine.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top