View Full Version : error trying to fax webpage with asp & html
skalag
10-24-2006, 11:52 PM
Yeah here i am again stumped with strange problem- i am trying to fax a web page from localhost using the internet fax service interfax.net, so i've got to put all my page data into a single variable to post it to the fax sending page.
I did all this using strFaxPage = strFaxPage & ("html stuff etc") for a few hundred lines, and at the bottom i use response.write(strFaxPage) and it all displays as it should.
My problem starts when i try to put this data in the form field using
<input name="page" type="hidden" value="<%=StrFaxPage%>"/>
when i use this it writes the data on the page twice, if i take away the response.write(strFaxPage) the data still appears on the page coming from the form field
<input name="page" type="hidden" value="<%=StrFaxPage%>"/>
if i change it to
<input name="page" type="hidden" value="<%%>"/>
nothing appears. Am i wrong but surely this input field can not write the data to the page?
Also when this input field does write the data to the page it comes up with a spare "> while response.write does not do this. It seems like the html and asp i have combined has an error but i believe it wouldn't work at all if i did, and i am so tired now but i have went through it all looking for an error, maybe i wouldnt see it in so much code but i don't think there is one there.
also when i submit to the fax page and use response.write and response.end
all i get is <table width=
and nothing more. Seems like my html is mixed up but i dont understand why it looks fine when i response.write(StrFaxPage) on its own.
here is the general flow of code maybe i am doing something bacvk to front:
'declare vars
Dim StrFaxPage
' some functions to prepare data
' start page and form
<body>
<form action="../fax asp/SendFaxAsp.asp" method="post" >
'check request.form to validate incoming data if all is ok then call function to
' call db and get and display data
<%
FUNCTION ShowRecord()
' call db and pass data to array
StrFaxPage = StrFaxPage & ("then comes a lot of lines of html for table header rows")
' if array not empty then start to
StrFaxPage = StrFaxPage & ("then comes a lot more lines of html for table rows")
StrFaxPage = StrFaxPage & (StrBunch) (and adding the array values)
' use next to loop through the array til ubound
END FUNCTION
%>
' now finish off the form fields and page
<input name="page" type="hidden" value="<%=StrFaxPage%>"/>
<input name="Submit" type="submit" value="submit"/>
</form>
</body>
the above page ending displays the data in strfaxpage plus the extra "> and only sends <table width= to the processing page
If i end page like this:
END FUNCTION
response.Write(strfaxpage)
%>
<input name="Submit" type="submit" value="submit"/>
</form>
it displays perfect, so i don't know whats going wrong and i don't know how to post the value of strfaxpage to the fax processing page.
skalag
10-24-2006, 11:59 PM
I changed the hidden field with StrFaxPage in it to this
<input name="page" type="hidden" value="<%=StrFaxPage%>" id="page" />
and the spare " />
becomes a spare
" id="page" />
So my error is coming from the hidden field writing this value out but i have no idea why, i didn't think this would happen.
BarrMan
10-25-2006, 06:14 PM
Firstly, Wrap your code with the code tags (much easier to read).
Secondly, Post all your code and write the response.write result of the StrFaxPage.
Then it would be much easier to help you.
skalag
10-26-2006, 09:09 AM
ok heres the full page, minus declarations & some of the functions and split into two posts cos the page wont submit
[CODE]
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<% Response.CacheControl = "no-cache" %>
<% Response.AddHeader "Pragma", "no-cache" %>
<% Response.Expires = -1 %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Order Form</title>
<link href="../CSS/webstyle.css" rel="stylesheet" type="text/css" />
<!--#include file="../connections/clsdatabase.asp" -->
</head>
<body>
<%
IF Request.Form("clientid") <> "" AND Request.Form("jobid") <> "" THEN
LngClientID = Request.Form("clientid")
LngJobId = Request.Form("jobid")
StrInoiceno = "RFB" & LngClientID & LngJobId
DatJobSurveyed = Request.Form("jobdate")
Call GetClient()
CALL ShowRecord()
ELSE
Response.Write("Database processing error: The data could not be retrieved - please try again.")
Response.End()
END IF
FUNCTION GetClient()
Set objDB = New clsDatabase
strSQL = "SELECT * FROM [clients] WHERE [clientid] = " & LngClientId
Call objDB.SetData(strSQL, JobArray)
Set objDB = Nothing
IF IsArray(JobArray) THEN
FOR intCount = 0 To UBound(JobArray, 2)
IF (JobArray(2, intCount)) <> "" THEN StrFirstname = Trim(Cstr(JobArray(2, intCount)))
IF (JobArray(3, intCount)) <> "" THEN StrSurname = Trim(Cstr(JobArray(3, intCount)))
NEXT
END IF
StrClientFullName = StrFirstname & " " & StrSurname
END FUNCTION
FUNCTION ShowRecord()
Set objDB = New clsDatabase
strSQL = "SELECT * FROM [jobdetails] WHERE [clientid] = " & LngClientId & " AND [jobid] = " & LngJobId & " ORDER BY blindid ASC"
Call objDB.SetData(strSQL, JobArray)
Set objDB = Nothing
IF IsArray(JobArray) THEN
StrFaxPage = StrFaxPage & ("<table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"" class=""orderformtable"">")
StrFaxPage = StrFaxPage & ("<tr>")
StrFaxPage = StrFaxPage & ("<td width=""27%"" align=""center"" valign=""top"">")
StrFaxPage = StrFaxPage & ("<table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"">")
StrFaxPage = StrFaxPage & ("<tr>")
StrFaxPage = StrFaxPage & ("<td class=""orderformline"">Customer: ")
StrFaxPage = StrFaxPage & (StrClientFullName)
StrFaxPage = StrFaxPage & ("</td>")
StrFaxPage = StrFaxPage & (" </tr>")
StrFaxPage = StrFaxPage & ("<tr>")
StrFaxPage = StrFaxPage & ("<td class=""orderformline"">Job Surveyed: ")
StrFaxPage = StrFaxPage & (DatJobSurveyed)
StrFaxPage = StrFaxPage & ("</td>")
StrFaxPage = StrFaxPage & ("</tr>")
StrFaxPage = StrFaxPage & ("<tr>")
StrFaxPage = StrFaxPage & ("<td class=""orderformline"">Order Date: ")
StrFaxPage = StrFaxPage & (DatOrderDate)
StrFaxPage = StrFaxPage & ("</td>")
StrFaxPage = StrFaxPage & ("</tr>")
StrFaxPage = StrFaxPage & (" </table> </td>")
StrFaxPage = StrFaxPage & ("<td width=""46%"" align=""center"" valign=""top""><img src=""orderbanner.jpg"" width=""400"" height=""50"" /></td>")
StrFaxPage = StrFaxPage & ("<td width=""27%"" align=""center"" valign=""top"">")
StrFaxPage = StrFaxPage & ("<table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"">")
StrFaxPage = StrFaxPage & ("<tr>")
StrFaxPage = StrFaxPage & ("<td align=""left"" valign=""top"">Invoice/Order No. </td>")
StrFaxPage = StrFaxPage & ("</tr>")
StrFaxPage = StrFaxPage & ("<tr>")
StrFaxPage = StrFaxPage & ("<td> </td>")
StrFaxPage = StrFaxPage & ("</tr>")
StrFaxPage = StrFaxPage & ("<tr>")
StrFaxPage = StrFaxPage & ("<td align=""center"" valign=""top"" class=""orderformline""><b class=""mainfont"">")
StrFaxPage = StrFaxPage & (StrInoiceno)
StrFaxPage = StrFaxPage & ("</b></td>")
StrFaxPage = StrFaxPage & (" </tr>")
StrFaxPage = StrFaxPage & ("<tr>")
StrFaxPage = StrFaxPage & ("<td> </td>")
StrFaxPage = StrFaxPage & ("</tr>")
StrFaxPage = StrFaxPage & (" <tr>")
StrFaxPage = StrFaxPage & ("<td> </td>")
StrFaxPage = StrFaxPage & ("</tr>")
StrFaxPage = StrFaxPage & ("</table> </td>")
StrFaxPage = StrFaxPage & ("</tr>")
StrFaxPage = StrFaxPage & (" <tr>")
StrFaxPage = StrFaxPage & ("<td colspan=""3"">")
StrFaxPage = StrFaxPage & ("<table width=""100%"" height=""130"" border=""0"" cellpadding=""0"" cellspacing=""0"" >")
StrFaxPage = StrFaxPage & ("<tr >")
StrFaxPage = StrFaxPage & ("<td width=""230"" align=""center"" valign=""top"" class=""cellborderbottom"">")
StrFaxPage = StrFaxPage & ("<table width=""230"" height=""130"" border=""0"" align=""center"" cellpadding=""0"" cellspacing=""0"">")
StrFaxPage = StrFaxPage & (" <tr>")
StrFaxPage = StrFaxPage & (" <td height=""25"" colspan=""6"" align=""center"" valign=""top"" class=""celltitleborder"">GENERAL</td>")
StrFaxPage = StrFaxPage & (" </tr>")
StrFaxPage = StrFaxPage & (" <tr>")
StrFaxPage = StrFaxPage & (" <td width=""20"" height=""105"" align=""center"" valign=""top"" class=""cellborder"">B<br />")
StrFaxPage = StrFaxPage & (" L<br />")
StrFaxPage = StrFaxPage & (" I<br />")
StrFaxPage = StrFaxPage & (" N<br />")
StrFaxPage = StrFaxPage & (" D</td>")
StrFaxPage = StrFaxPage & (" <td width=""50"" height=""105"" align=""center"" valign=""top"" class=""cellborder"">R<br />")
StrFaxPage = StrFaxPage & (" O<br />")
StrFaxPage = StrFaxPage & (" O<br />")
StrFaxPage = StrFaxPage & (" M</td>")
StrFaxPage = StrFaxPage & (" <td width=""50"" height=""105"" align=""center"" valign=""top"" class=""cellborder"">W<br />")
StrFaxPage = StrFaxPage & (" I<br />")
StrFaxPage = StrFaxPage & (" D<br />")
StrFaxPage = StrFaxPage & (" T<br />")
StrFaxPage = StrFaxPage & (" H<br /> </td>")
StrFaxPage = StrFaxPage & (" <td width=""50"" height=""105"" align=""center"" valign=""top"" class=""cellborder"">D<br />")
StrFaxPage = StrFaxPage & (" R<br />")
StrFaxPage = StrFaxPage & (" O<br />")
StrFaxPage = StrFaxPage & (" P<br /> </td>")
StrFaxPage = StrFaxPage & (" <td width=""30"" height=""105"" align=""center"" valign=""top"" class=""cellborder"">S<br />")
StrFaxPage = StrFaxPage & (" I<br />")
StrFaxPage = StrFaxPage & (" Z<br />")
StrFaxPage = StrFaxPage & (" E<br />")
StrFaxPage = StrFaxPage & (" T<br />")
StrFaxPage = StrFaxPage & ("Y<br />")
StrFaxPage = StrFaxPage & ("P<br />")
StrFaxPage = StrFaxPage & ("E</td>")
StrFaxPage = StrFaxPage & ("<td width=""30"" height=""105"" align=""center"" valign=""top"" class=""cellborder"">C<br />")
StrFaxPage = StrFaxPage & ("O<br />")
StrFaxPage = StrFaxPage & ("N<br />")
StrFaxPage = StrFaxPage & ("T<br />")
StrFaxPage = StrFaxPage & ("R<br />")
StrFaxPage = StrFaxPage & ("O<br />")
StrFaxPage = StrFaxPage & ("L<br />")
StrFaxPage = StrFaxPage & ("S</td>")
StrFaxPage = StrFaxPage & ("</tr>")
StrFaxPage = StrFaxPage & (" </table> </td>")
StrFaxPage = StrFaxPage & ("<td width=""200"" align=""center"" valign=""top"" class=""cellborderbottom"">")
StrFaxPage = StrFaxPage & ("<table width=""200"" height=""130"" border=""0"" align=""center"" cellpadding=""0"" cellspacing=""0"" id=""fabric"">")
StrFaxPage = StrFaxPage & ("<tr>")
StrFaxPage = StrFaxPage & ("<td height=""25"" colspan=""2"" align=""center"" valign=""top"" class=""celltitleborder"">FABRIC</td>")
StrFaxPage = StrFaxPage & ("</tr>")
StrFaxPage = StrFaxPage & ("<tr>")
StrFaxPage = StrFaxPage & ("<td width=""100"" height=""105"" align=""center"" valign=""top"" class=""cellborder"">T<br />")
StrFaxPage = StrFaxPage & ("Y<br />")
StrFaxPage = StrFaxPage & ("P<br />")
StrFaxPage = StrFaxPage & ("E<br /> </td>")
StrFaxPage = StrFaxPage & ("<td width=""100"" height=""105"" align=""center"" valign=""top"" class=""cellborder"">C<br />")
StrFaxPage = StrFaxPage & ("O<br />")
StrFaxPage = StrFaxPage & ("L<br />")
StrFaxPage = StrFaxPage & ("O<br />")
StrFaxPage = StrFaxPage & ("U<br />")
StrFaxPage = StrFaxPage & ("R</td>")
StrFaxPage = StrFaxPage & ("</tr>")
StrFaxPage = StrFaxPage & ("</table></td>")
StrFaxPage = StrFaxPage & ("<td width=""100"" align=""center"" valign=""top"" class=""cellborderbottom"">")
StrFaxPage = StrFaxPage & ("<table width=""100"" height=""130"" border=""0"" align=""center"" cellpadding=""0"" cellspacing=""0"" id=""louvre"">")
StrFaxPage = StrFaxPage & ("<tr>")
StrFaxPage = StrFaxPage & ("<td height=""25"" colspan=""3"" align=""center"" valign=""top"" class=""celltitleborder"">LOUVRE</td>")
StrFaxPage = StrFaxPage & ("</tr>")
StrFaxPage = StrFaxPage & ("<tr>")
StrFaxPage = StrFaxPage & ("<td width=""30"" height=""105"" align=""center"" valign=""top"" class=""cellborder"">B<br />")
StrFaxPage = StrFaxPage & ("U<br />")
StrFaxPage = StrFaxPage & ("N<br />")
StrFaxPage = StrFaxPage & ("C<br />")
StrFaxPage = StrFaxPage & (" H<br />")
StrFaxPage = StrFaxPage & (" <br /></td>")
StrFaxPage = StrFaxPage & ("<td width=""30"" height=""105"" align=""center"" valign=""top"" class=""cellborder""> Hard<br />")
StrFaxPage = StrFaxPage & ("ware<br />")
StrFaxPage = StrFaxPage & ("C<br />")
StrFaxPage = StrFaxPage & ("O<br />")
StrFaxPage = StrFaxPage & ("L<br />")
StrFaxPage = StrFaxPage & ("O<br />")
StrFaxPage = StrFaxPage & ("U<br />")
StrFaxPage = StrFaxPage & ("R<br /></td>")
StrFaxPage = StrFaxPage & ("<td width=""40"" height=""105"" align=""center"" valign=""top"" class=""cellborder"">Louvre<br />")
StrFaxPage = StrFaxPage & ("S<br />")
StrFaxPage = StrFaxPage & ("I<br />")
StrFaxPage = StrFaxPage & ("Z<br />")
StrFaxPage = StrFaxPage & ("E</td>")
StrFaxPage = StrFaxPage & ("</tr>")
StrFaxPage = StrFaxPage & (" </table></td>")
skalag
10-26-2006, 09:31 AM
split into 3 pages cos it still wont submit
StrFaxPage = StrFaxPage & ("<td width=""250"" align=""center"" valign=""top"" class=""cellborderbottom"">")
StrFaxPage = StrFaxPage & ("<table width=""250"" height=""130"" border=""0"" align=""center"" cellpadding=""0"" cellspacing=""0"" id=""roller"">")
StrFaxPage = StrFaxPage & ("<tr>")
StrFaxPage = StrFaxPage & ("<td height=""25"" colspan=""4"" align=""center"" valign=""top"" class=""celltitleborder"">ROLLER</td>")
StrFaxPage = StrFaxPage & ("</tr>")
StrFaxPage = StrFaxPage & ("<tr>")
StrFaxPage = StrFaxPage & ("<td width=""30"" height=""105"" align=""center"" valign=""top"" class=""cellborder"">S<br />")
StrFaxPage = StrFaxPage & (" H<br />")
StrFaxPage = StrFaxPage & ("A<br />")
StrFaxPage = StrFaxPage & ("P<br />")
StrFaxPage = StrFaxPage & ("E<br /> </td>")
StrFaxPage = StrFaxPage & (" <td width=""90"" height=""105"" align=""center"" valign=""top"" class=""cellborder"">TRIM<br />")
StrFaxPage = StrFaxPage & ("C<br />")
StrFaxPage = StrFaxPage & ("O<br />")
StrFaxPage = StrFaxPage & (" L<br />")
StrFaxPage = StrFaxPage & (" O<br />")
StrFaxPage = StrFaxPage & (" U<br />")
StrFaxPage = StrFaxPage & ("R<br /></td>")
StrFaxPage = StrFaxPage & ("<td width=""90"" height=""105"" align=""center"" valign=""top"" class=""cellborder"">POLE<br />")
StrFaxPage = StrFaxPage & ("C<br />")
StrFaxPage = StrFaxPage & ("O<br />")
StrFaxPage = StrFaxPage & ("L<br />")
StrFaxPage = StrFaxPage & ("O<br />")
StrFaxPage = StrFaxPage & ("U<br />")
StrFaxPage = StrFaxPage & ("R</td>")
StrFaxPage = StrFaxPage & ("<td width=""40"" height=""105"" align=""center"" valign=""top"" class=""cellborder"">S<br />")
StrFaxPage = StrFaxPage & ("I<br />")
StrFaxPage = StrFaxPage & ("D<br />")
StrFaxPage = StrFaxPage & ("E<br />")
StrFaxPage = StrFaxPage & (" T<br />")
StrFaxPage = StrFaxPage & ("Y<br />")
StrFaxPage = StrFaxPage & ("P<br />")
StrFaxPage = StrFaxPage & (" E</td>")
StrFaxPage = StrFaxPage & ("</tr>")
StrFaxPage = StrFaxPage & ("</table> </td>")
StrFaxPage = StrFaxPage & ("<td width=""100%"" height=""130"" align=""center"" valign=""top"" class=""cellborderbottom""><table width=""100%"" height=""130"" border=""0"" cellpadding=""0"" cellspacing=""0"">")
StrFaxPage = StrFaxPage & (" <tr>")
StrFaxPage = StrFaxPage & ("<td width=""170"" height=""25"" align=""center"" valign=""top"" class=""celltitleborder"">SPECIAL INSTRUCTIONS</td>")
StrFaxPage = StrFaxPage & ("</tr>")
StrFaxPage = StrFaxPage & (" <tr>")
StrFaxPage = StrFaxPage & ("<td width=""170"" height=""105"" align=""center"" valign=""top"" class=""cellborder""> </td>")
StrFaxPage = StrFaxPage & (" </tr>")
StrFaxPage = StrFaxPage & ("</table></td>")
StrFaxPage = StrFaxPage & (" </tr>")
IntMaxRecord = UBound(JobArray, 2)
IntMaxRecord = IntMaxRecord + 1
FOR intCount = 0 To UBound(JobArray, 2)
IF (JobArray(0, intCount)) <> "" THEN LngJobId = Trim(CLng(JobArray(0, intCount)))
IF (JobArray(1, intCount)) <> "" THEN LngClientID = Trim(CLng(JobArray(1, intCount)))
IF (JobArray(2, intCount)) <> "" THEN LngBlindId = Trim(Cstr(JobArray(2, intCount)))
IF (JobArray(3, intCount)) <> "" THEN StrSizeType = Trim(Cstr(JobArray(3, intCount)))
IF (JobArray(4, intCount)) <> "" THEN StrWidth = Trim(Cstr(JobArray(4, intCount)))
IF (JobArray(5, intCount)) <> "" THEN StrWidthFraction = Trim(Cstr(JobArray(5, intCount)))
IF (JobArray(6, intCount)) <> "" THEN StrDrop = Trim(Cstr(JobArray(6, intCount)))
IF (JobArray(7, intCount)) <> "" THEN StrDropFraction = Trim(Cstr(JobArray(7, intCount)))
IF (JobArray(8, intCount)) <> "" THEN StrLouvreSize = Trim(CStr(JobArray(8, intCount)))
IF (JobArray(9, intCount)) <> "" THEN StrVenetianType = Trim(Cstr(JobArray(9, intCount)))
IF (JobArray(10, intCount)) <> "" THEN StrFabricType = Trim(Cstr(JobArray(10, intCount)))
IF (JobArray(11, intCount)) <> "" THEN StrFabricColour = Trim(Cstr(JobArray(11, intCount)))
IF (JobArray(12, intCount)) <> "" THEN StrHardwareColour = Trim(Cstr(JobArray(12, intCount)))
IF (JobArray(13, intCount)) <> "" THEN StrControls = Trim(Cstr(JobArray(13, intCount)))
IF (JobArray(14, intCount)) <> "" THEN StrBunch = Trim(Cstr(JobArray(14, intCount)))
IF (JobArray(15, intCount)) <> "" THEN StrShape = Trim(Cstr(JobArray(15, intCount)))
IF (JobArray(16, intCount)) <> "" THEN StrTrimColour = Trim(Cstr(JobArray(16, intCount)))
IF (JobArray(17, intCount)) <> "" THEN StrPoleColour = Trim(Cstr(JobArray(17, intCount)))
IF (JobArray(18, intCount)) <> "" THEN StrBlindType = Trim(CStr(JobArray(18, intCount)))
IF (JobArray(19, intCount)) <> "" THEN StrRollerType = Trim(Cstr(JobArray(19, intCount)))
IF (JobArray(20, intCount)) <> "" THEN StrSpecialInstructions = Trim(Cstr(JobArray(20, intCount)))
IF (JobArray(21, intCount)) <> "" THEN StrJobComments = Trim(Cstr(JobArray(21, intCount)))
IF (JobArray(22, intCount)) <> "" THEN StrRoomLocation = Trim(Cstr(JobArray(22, intCount)))
IF (JobArray(23, intCount)) <> "" THEN StrPriceAgreed = Trim(Cstr(JobArray(23, intCount)))
skalag
10-26-2006, 09:32 AM
Call CutInitial(StrSizeType)
Call CutInitial(StrControls)
Call CutInitial(StrBunch)
Call CutInitial(StrHardwareColour)
Call CutInitial(StrShape)
Call CutStringfive(StrRoomLocation)
Call CutStringfive(StrBlindType)
Call CutStringthree(StrRollerType)
Call BlankString(StrSizeType)
Call BlankString(StrWidth)
Call BlankString(StrWidthFraction)
Call BlankString(StrDrop)
Call BlankString(StrDropFraction)
Call BlankString(StrLouvreSize)
Call BlankString(StrVenetianType)
Call BlankString(StrFabricType)
Call BlankString(StrFabricColour)
Call BlankString(StrHardwareColour)
Call BlankString(StrControls)
Call BlankString(StrBunch)
Call BlankString(StrShape)
Call BlankString(StrTrimColour)
Call BlankString(StrPoleColour)
Call BlankString(StrBlindType)
Call BlankString(StrRollerType)
Call BlankString(StrSpecialInstructions)
Call BlankString(StrRoomLocation)
Call BlankString(StrPriceAgreed)
Call BreakFractionWidth(StrWidthFraction)
Call BreakFractionDrop(StrDropFraction)
' <!-- GRID ROWS -->
StrFaxPage = StrFaxPage & ("<tr >")
StrFaxPage = StrFaxPage & ("<td width=""230"" height=""25"" align=""center"" valign=""top"" class=""cellborderbottom"">")
StrFaxPage = StrFaxPage & ("<table width=""230"" height=""25"" border=""0"" align=""center"" cellpadding=""0"" cellspacing=""0"">")
StrFaxPage = StrFaxPage & ("<tr>")
StrFaxPage = StrFaxPage & ("<td width=""20"" height=""25"" align=""center"" valign=""middle"" class=""cellbordergrid"">")
StrFaxPage = StrFaxPage & (LngBlindId)
StrFaxPage = StrFaxPage & ("</td>")
StrFaxPage = StrFaxPage & ("<td width=""50"" height=""25"" align=""center"" valign=""middle"" class=""cellbordergrid"">")
StrFaxPage = StrFaxPage & (StrRoomLocation)
StrFaxPage = StrFaxPage & ("</td>")
StrFaxPage = StrFaxPage & ("<td width=""50"" height=""25"" align=""center"" valign=""middle"" class=""cellbordergrid"">")
StrFaxPage = StrFaxPage & (StrWidth)
StrFaxPage = StrFaxPage & ("</td>")
StrFaxPage = StrFaxPage & ("<td width=""50"" height=""25"" align=""center"" valign=""middle"" class=""cellbordergrid"">")
StrFaxPage = StrFaxPage & (StrDrop)
StrFaxPage = StrFaxPage & ("</td>")
StrFaxPage = StrFaxPage & ("<td width=""30"" height=""25"" align=""center"" valign=""middle"" class=""cellbordergrid"">")
StrFaxPage = StrFaxPage & (StrSizeType)
StrFaxPage = StrFaxPage & ("</td>")
StrFaxPage = StrFaxPage & ("<td width=""30"" height=""25"" align=""center"" valign=""middle"" class=""cellbordergrid"">")
StrFaxPage = StrFaxPage & (StrControls)
StrFaxPage = StrFaxPage & ("</td>")
StrFaxPage = StrFaxPage & ("</tr>")
StrFaxPage = StrFaxPage & ("</table> </td>")
StrFaxPage = StrFaxPage & ("<td width=""200"" height=""25"" align=""center"" valign=""top"" class=""cellborderbottom"">")
StrFaxPage = StrFaxPage & ("<table width=""200"" height=""25"" border=""0"" align=""center"" cellpadding=""0"" cellspacing=""0"" id=""fabric"">")
StrFaxPage = StrFaxPage & (" <tr>")
StrFaxPage = StrFaxPage & ("<td width=""100"" height=""25"" align=""center"" valign=""middle"" class=""cellbordergrid"">")
StrFaxPage = StrFaxPage & (StrFabricType)
StrFaxPage = StrFaxPage & ("</td>")
StrFaxPage = StrFaxPage & ("<td width=""100"" height=""25"" align=""center"" valign=""middle"" class=""cellbordergrid"">")
StrFaxPage = StrFaxPage & (StrFabricColour)
StrFaxPage = StrFaxPage & ("</td>")
StrFaxPage = StrFaxPage & ("</tr>")
StrFaxPage = StrFaxPage & ("</table> </td>")
StrFaxPage = StrFaxPage & ("<td width=""100"" height=""25"" align=""center"" valign=""top"" class=""cellborderbottom"">")
StrFaxPage = StrFaxPage & ("<table width=""100"" height=""25"" border=""0"" align=""center"" cellpadding=""0"" cellspacing=""0"" id=""louvre"">")
StrFaxPage = StrFaxPage & (" <tr>")
StrFaxPage = StrFaxPage & ("<td width=""30"" height=""25"" align=""center"" valign=""middle"" class=""cellbordergrid"">")
StrFaxPage = StrFaxPage & (StrBunch)
StrFaxPage = StrFaxPage & ("</td>")
StrFaxPage = StrFaxPage & ("<td width=""30"" height=""25"" align=""center"" valign=""middle"" class=""cellbordergrid"">")
StrFaxPage = StrFaxPage & (StrHardwareColour)
StrFaxPage = StrFaxPage & ("</td>")
StrFaxPage = StrFaxPage & ("<td width=""40"" height=""25"" align=""center"" valign=""middle"" class=""cellbordergrid"">")
StrFaxPage = StrFaxPage & (StrLouvreSize)
StrFaxPage = StrFaxPage & ("</td>")
StrFaxPage = StrFaxPage & ("</tr>")
StrFaxPage = StrFaxPage & ("</table> </td>")
StrFaxPage = StrFaxPage & ("<td width=""250"" height=""25"" align=""center"" valign=""top"" class=""cellborderbottom""><table width=""250"" height=""25"" border=""0"" align=""center"" cellpadding=""0"" cellspacing=""0"" id=""roller"">")
StrFaxPage = StrFaxPage & ("<tr>")
StrFaxPage = StrFaxPage & (" <td width=""30"" height=""25"" align=""center"" valign=""middle"" class=""cellbordergrid"">")
StrFaxPage = StrFaxPage & (StrShape)
StrFaxPage = StrFaxPage & ("</td>")
StrFaxPage = StrFaxPage & (" <td width=""90"" height=""25"" align=""center"" valign=""middle"" class=""cellbordergrid"">")
StrFaxPage = StrFaxPage & (StrTrimColour)
StrFaxPage = StrFaxPage & ("</td>")
StrFaxPage = StrFaxPage & ("<td width=""90"" height=""25"" align=""center"" valign=""middle"" class=""cellbordergrid"">")
StrFaxPage = StrFaxPage & (StrPoleColour)
StrFaxPage = StrFaxPage & ("</td>")
StrFaxPage = StrFaxPage & ("<td width=""40"" height=""25"" align=""center"" valign=""middle"" class=""cellbordergrid"">")
StrFaxPage = StrFaxPage & (StrRollerType)
StrFaxPage = StrFaxPage & ("</td>")
StrFaxPage = StrFaxPage & (" </tr>")
StrFaxPage = StrFaxPage & (" </table> </td>")
StrFaxPage = StrFaxPage & (" <td width=""100%"" height=""25"" align=""center"" valign=""top"" class=""cellborderbottom""><table width=""100%"" height=""25"" border=""0"" cellpadding=""0"" cellspacing=""0"">")
StrFaxPage = StrFaxPage & (" <tr>")
StrFaxPage = StrFaxPage & (" <td width=""170"" height=""25"" align=""center"" valign=""top"" class=""cellbordergrid"">")
StrFaxPage = StrFaxPage & (StrSpecialInstructions)
StrFaxPage = StrFaxPage & ("</td>")
StrFaxPage = StrFaxPage & (" </tr>")
StrFaxPage = StrFaxPage & (" </table></td>")
StrFaxPage = StrFaxPage & (" </tr>")
NEXT
StrFaxPage = StrFaxPage & ("</table></td>")
StrFaxPage = StrFaxPage & ("</tr>")
StrFaxPage = StrFaxPage & (" </table>")
END IF
END FUNCTION
%>
<% response.Write(strfaxpage)%>
<form name="datatofax" action="../fax asp/SendFaxAsp.asp" method="post" >
<input name="page" type="hidden" value="<%=StrFaxPage%>" id="page" />
<input name="Submit" type="submit" value="submit"/>
</form>
</body>
</html>
BarrMan
10-26-2006, 12:00 PM
Ok, When I said all your code, I meant all the relevant code that causes you the error.
What do you get from Response.Write StrFaxPage?
And what is the actual error? I didn't quite understand that.
skalag
10-26-2006, 03:48 PM
oops sorry, any way the code is as it shows but my error is that i do a response.write(strfax) at the end of the code and the page displays the table and data perfectly.
I need to post the data to another page to submit to fax so i use this:
<form name="datatofax" action="../fax asp/SendFaxAsp.asp" method="post" >
<input name="page" type="hidden" value="<%=StrFaxPage%>" id="page" />
<input name="Submit" type="submit" value="submit"/>
</form>
this then writes then data out to the page along with the response.write (though the data has an error when it is written out the end of the hidden form field after Strfaxpage is written on the page: >" id="page" /> )
my problem is how can a hidden form field write the data to the page? also it doesnt post it to the fax page (response.write on fax page produces: <table width= )
BarrMan
10-26-2006, 07:58 PM
Hey, I've checked your code couple of times trying to find an opened tag.
I found nothing opened, but maybe I missed something...
It has to be some quote in a tag that makes this problem.
skalag
10-27-2006, 08:29 AM
thanks for looking BarrMan:thumbsup: , i went over it myself and didnt see anything, but its only the input field that does it not the response.write which is strange.
i'll check it again myself cos there is some html in the functions too so i'll go over that again, then i think i'll break it down into Strfaxpage1, strfaxpage2 etc and try that way and either track down the error or get it to work.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.