By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,933 Members | 1,686 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,933 IT Pros & Developers. It's quick & easy.

why the script did not reprint html out

P: 236
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,
Attached Files
File Type: txt PPLOG.txt (63.9 KB, 2217 views)
Nov 30 '08 #1
Share this Question
Share on Google+
4 Replies

Expert 2.5K+
P: 4,059
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

Expert 100+
P: 971

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.

Nov 30 '08 #3

P: 236
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.


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)
  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"
  18. value="Edit Entry"></td>
  19.     </tr>
  20.     </table>
  21.     </form>';
  22. }
Dec 1 '08 #4

Expert 2.5K+
P: 4,059
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

Post your reply

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