473,326 Members | 2,104 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

why the script did not reprint html out

236 100+
Hi All,

The pplog script below i clicked "Main Menu" --> New Entry, it showed the same main page, and not jump to add new entry. Not sure what is happening?


Thanks and Best Rgds,
Andrew
Attached Files
File Type: txt PPLOG.txt (63.9 KB, 3811 views)
Nov 30 '08 #1
4 1558
KevinADC
4,059 Expert 2GB
I think most of us were happy to try and help you when you first started posting questions on this forum. But like I have said once or maybe more, you are now asking for tech support and not even asking perl questions anymore. Posting 2000+ lines of code is also ridiculous.
Nov 30 '08 #2
eWish
971 Expert 512MB
Andrew,

Please use an attachment when you have that much code. Also, when you have a large amount of code your chances for assistance are not as good.

First narrow done your issues so that help will be more efficient. Please only post the relevant code where you are having your problems.

Also, as KevinADC suggests, you are in need of support not assistance with a Perl issue. Trying to contact the author of the code you posted should be your first step.

I have fixed your post above to include your code as an attachment.

Kevin
Moderator
Nov 30 '08 #3
happyse27
236 100+
Hi Sirs,

Thanks! Sorry for the inconvenience. I was asking for technical support(anyway not sure about what is the difference between question and technical support kindly enlighten? I believe short and sweet will be known as question?), but will paste much shorter code in future, but the code once cut and paste in .pl will be generated as html, it is only clicked new post will not be able to show the html which I am asking.

I tried to upload as attachment last week or so, tried more than 20 times could not in terms of jpg, gif, doc or zip as it have limit of 5K and below(keep the file low in size still the upload system prompted me problem... So I had to cut and paste.

Anyway, thanks I will try to post to the author who wrote the script.


Cheers...
Andrew

perl script to print html
=================
Expand|Select|Wrap|Line Numbers
  1. elsif(r('edit') ne '')
  2. {
  3.     # Edit Secure (This page will appear before the edit one)
  4.  
  5.     my $fileName = r('edit');
  6.     print '<h1>Editing Entry...</h1>
  7.     <form name="form1" method="post">
  8.     <table>
  9.     <td>Pass</td>
  10.     <td><input name="pass" type="password" id="pass">
  11.     <input name="process" type="hidden" id="process" value="editSecured">
  12.     <input name="fileName" type="hidden" id="fileName" value="'.$fileName.'"></td>
  13.     </tr>
  14.     <tr>
  15.     <td>&nbsp;</td>
  16.     <td><input type="submit" onclick="javascript:this.disabled=true" name="Submit"
  17.  
  18. value="Edit Entry"></td>
  19.     </tr>
  20.     </table>
  21.     </form>';
  22. }
  23.  
  24.  
Dec 1 '08 #4
KevinADC
4,059 Expert 2GB
The difference (in my mind) is that you have not asked a question about perl, you have posted your program and want it to do something differently. Perl has no mechanism to make the display jump to a certain part of an html document anyway. That would be html or javascript. Its true your program is written in perl, but the behavior you are seeking is not contolled by perl but by the web browser. So the solution is in the html code itself. If you want a web page to jump to a part of the page you use internal links, or if you really mean focus on a form widget, thats javascript, neither of which has anything to do with perl.

Writing perl based CGI scripts requires a good knowledge of perl, html/xml, and optionally javascript and CSS. Think perl when something happens on the server, think web browser when something happens in the display, that would be html/xml, and not perl at that point. Perl just prints the display stuff, the html/xml, but it has nothing to do with it after that.
Dec 1 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: jasonbrown1999 | last post by:
Someone told me the following script could be used to run harmful commands on the server, by passing commands into the script. What the script does is encode an affiliate URL, create two frames,...
6
by: Mike Daniel | last post by:
I am attempting to use document.write(pageVar) that displays a new html page within a pop-up window and the popup is failing. Also note that pageVar is a complete HTML page containing other java...
1
by: bayouprophet | last post by:
Cant get menu script to to put linked page in the same frame. I am new to Java and I am wondering what am I doing wrong? below are my java applet file, frame.html file, and my text file and one...
44
by: rhythmace | last post by:
W3C HTML validator passes this: .... <script type="text/javascript" src="foo.js"> <script type="text/javascript"> ....script in here... </script> ....
2
by: bilaribilari | last post by:
Hi all, I am using Tidy (C) for parsing html pages. I encountered a page that has some script as follows: <script> .... var abc = "<script>some stuff here</" + "script>"; .... </script>
19
by: thisis | last post by:
Hi All, i have this.asp page: <script type="text/vbscript"> Function myFunc(val1ok, val2ok) ' do something ok myFunc = " return something ok" End Function </script>
7
by: imtmub | last post by:
I have a page, Head tag Contains many Scripts and style sheet for Menu and Page. This code working fine and displaying menus and page as i wanted. Check this page for reference....
3
by: aRTx | last post by:
I have try a couple of time but does not work for me My files everytime are sortet by NAME. I want to Sort my files by Date-desc. Can anyone help me to do it? The Script <? /* ORIGJINALI
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.