CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
directory selection, frames and forms

 



waherne
Novice

Jan 26, 2000, 6:46 AM

Post #1 of 4 (1159 views)
directory selection, frames and forms Can't Post

I am trying to write a perl script to perform the following task:

Within a framed webpage say www.main.com, a user may choose an article A, B, or C. The only change that occurs to the webpage is the content of article A, B, or C will appear.

Each article has its own directory e.g. www.main.com/a or www.main.com/b

Within the frame, there is a form always present irrespective of which article is chosen. When the form is submitted, I want to create a new webpage in the appropriate directory e.g. www.main.com/b/newpage1 where the submission is made from the form when article B is being read.

I would really appreciate your help on this one.

Many thanks,

Willie


brian.hayes
User

Feb 1, 2000, 7:11 PM

Post #2 of 4 (1159 views)
Re: directory selection, frames and forms [In reply to] Can't Post

I understand what your talking about. I looked at the source code on the web site and this is it below:

<BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR>


<html>
<head>
<title>The Digital Mainstream - Still the Best</title>
<FRAMESET rows="108,*" frameborder="0" border="0" framespacing="0">
<FRAME SRC="navbar.html" name="navbar" scrolling=no>
<frameset cols="128,*" frameborder="0" framespacing="0">
<frame src="mlink.html" name="banner" scrolling=auto>
<FRAME SRC="mbody.html" name="main_body">
</frameset>
</frameset>
</head>
</pre><HR></BLOCKQUOTE>

Take a close look at the "FRAME SOURCE" section. See the one with the name "NAVBAR"?

All you have to do is create a link to some where like this:

<BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR>



<a href="free.html" target="banner">

</pre><HR></BLOCKQUOTE>

Notice the target="banner". This is where the page will apeare. There site's left window is the frame source with the name "banner". So any links to anywhere with the target as banner will display in that frame.

This is out of a help file that I have.

Names must begin with an alphanumeric character.
Several reserved names have been defined, which start with an underscore.

These are currently:

_blank Always load this link into a new, unnamed window

_self Always load this link over the document that originated the link.

_parent Always load this link over the parent frame.
(becomes self if the frame has no parent, or is the parent frame).

_top Always load this link at the top level.
(becomes self if the frame is the top frame).

Hope this helps,

Brian Hayes



brian.hayes
User

Feb 1, 2000, 7:13 PM

Post #3 of 4 (1159 views)
Re: directory selection, frames and forms [In reply to] Can't Post

Correction , NAVBAR is the top page in there frames. Banner is the left one. SO look at that one.

Brian Hayes


waherne
Novice

Feb 2, 2000, 3:14 AM

Post #4 of 4 (1159 views)
Re: directory selection, frames and forms [In reply to] Can't Post

Thanks Brian,

I will let you know how I get on.

Willie

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives