Forum Moderators: coopster & phranque

Message Too Old, No Replies

using <div> in perl

         

Berrysweet

9:07 am on Aug 7, 2004 (gmt 0)

10+ Year Member



Thanks in advance for any help, I have looked for this in tutorials but have not been able to find it.

In my perl form, after my:
start_html

I want to open a div and then close it between the:
print end_form; and
print end_html;

I tried:
start_html(-style => {-src => '/style/form_stlye.css'},-title=>"My title here"),
print "<div id="form_div">",
h1("My H1 here");

## lots of stuff here

print end_form;
print "</div>;
print end_html;

but this does not work at all. How should it be done?

kaled

10:36 am on Aug 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've only ever used raw print statements to create html output in perl but for what it's worth ....

TOO VAGUE
Stating that something doesn't work is rarely useful in illiciting help.
What doesn't work?

I'm guessing that it simply doesn't render as expected. In this case, inspect the html source code (created by your perl script). Work out where the fault lies (in the html) and fix it (by adjusting your perl script).
It looks to me that the DIV and FORM tags may overlap but as I said above, I don't use perl_html stuff.

Kaled.

Berrysweet

7:17 pm on Aug 7, 2004 (gmt 0)

10+ Year Member



I figured it out.

PhraSEOlogy

9:02 pm on Aug 7, 2004 (gmt 0)

10+ Year Member



Berrysweet,

Can you post the solution here so that others know how you did it.

Berrysweet

9:11 pm on Aug 8, 2004 (gmt 0)

10+ Year Member



I will reluctantly post, I am disappointed with this forum.

There was a typo in my original post, but not in my script.
print "</div>; should have been
print "</div>";

The solution is that:
print "<div id="form_div">", does not need the "print", the "start_html" takes care of that until the next ";"

lexipixel

9:12 am on Aug 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month




"I will reluctantly post, I am disappointed with this forum".

-Berrysweet

You've only made one other post, (in [webmasterworld.com...] ), and ended up saying "it wasn't that complicated" I figured it out"... instead of the polite "thanks", and here's how I did it code... a forum is only as good as the people who participate in it. I think you'll find WebMasterWorld holds the accumulated knowledge of 20+ years of online pros --- and all you have to do is ask the right question the right way and get the right answers.