Solved

Having problem's

Posted on 2003-12-04
9
207 Views
Last Modified: 2010-04-09
Hi all im having problems with making this web page interactive eg i want people to wright in these areas and be abel to save it to there area the fineched product

the areas are all the " " bits in this code

yours

hisshadow

<head>
<!-- TemplateBeginEditable name="doctitle" -->
<title>Leason Plan</title>
<!-- TemplateEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<style type="text/css">
<!--
.style2 {font-size: 12px}
.style3 {
      font-size: 18px;
      font-weight: bold;
}
.style5 {font-size: 14px}
.style6 {font-size: 18px}
-->
</style>
</head>

<body>

<div align="center">
  <p align="center" class="style3"><u>Lesson Plans </u></p>
  <p align="center" class="style6">Month
    <select name="month">
        <option value="1">1</option>
      <option value="2">2</option>
      <option value="3">3</option>
      <option value="4">4</option>
      <option value="5">5</option>
      <option value="6">6</option>
      <option value="7">7</option>
      <option value="8">8</option>
      <option value="9">9</option>
      <option value="10">10</option>
      <option value="11">11</option>
      <option value="12">12</option>
    </select>
  Year
  <select name="YY">
    <option value="00">00</option>
    <option value="01">01</option>
      <option value="02">02</option>
      <option value="03">03</option>
      <option value="04">04</option>
      <option value="05">05</option>
      <option value="06">06</option>
      <option value="07">07</option>
      <option value="08">08</option>
      <option value="09">09</option>
      <option value="10">10</option>
      <option value="11">11</option>
      <option value="12">12</option>
      <option value="13">13</option>
      <option value="14">14</option>
      <option value="15">15</option>
      <option value="16">16</option>
      <option value="17">17</option>
      <option value="18">18</option>
      <option value="19">19</option>
      <option value="20">20</option>
  </select>
  </p>
</div>
<div align="center">
  <table width="776" height="193" border="1">
    <tr>
      <td width="74"><span class="style2">NC/GCSE Level </span></td>
      <td width="686"><u><strong>Learning Objectives </strong></u></td>
    </tr>
    <tr>
      <td><div align="right">
        <ul>
          <li></li>
        </ul>
      </div></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td><div align="right">
        <ul>
          <li></li>
        </ul>
      </div></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td><div align="right">
        <ul>
          <li></li>
        </ul>
      </div></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td><div align="right">
        <ul>
          <li></li>
        </ul>
      </div></td>
      <td>&nbsp;</td>
    </tr>
  </table>
</div>
<p>&nbsp;</p>
<div align="center">
  <table width="776" height="127" border="1">
    <tr>
      <td width="160" height="0"><span class="style5">Literacy/Presentation</span></td>
      <td width="601">&nbsp;</td>
    </tr>
    <tr>
      <td width="160" height="0"><span class="style5">Numerancy</span></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td width="160" height="0"><span class="style5">SMSC/Citizenship</span></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td width="160" height="0"><span class="style5">ICT</span></td>
      <td>&nbsp;</td>
    </tr>
  </table>
</div>
<p>&nbsp;</p>
</body>
</html>
0
Comment
Question by:Nicky Raven
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 3

Accepted Solution

by:
mrh30 earned 125 total points
ID: 9873056
I suggest you put a couple of form tags round everything you want to input:

<form name="mainform" action="[location of a CGI script]" method="post">
[Content]
</form>

Then replace each of your &nbsp; by <textarea name="area1"></textarea>

Your CGI script should then be able to gather the information from the text areas and save the data off for you.  For example in a Perl CGI script, you might access the textarea above by something like:

#!/usr/bin/perl -w

use strict;
use CGI;

my $q = new CGI();
print $q->header();

my $input = $q->param('area1');

open FILE, "> filename";
print FILE $input;
close FILE;

print "Saved data";
0
 

Author Comment

by:Nicky Raven
ID: 9873416
a contuniu to that question i get arros on the end of the editable box is there a way of geting rid of them intill someon over wrights over the seeable edge

yours

HisShadow
0
 
LVL 3

Expert Comment

by:mrh30
ID: 9873442
It's a little bit tricky to do so.  The only way you could achieve that sort of effect is to set the textarea's style to "overflow: hidden", which hides the scroll bars, but also any content which overflows the box.  You could then write a bit of Javascript to monitor the input and change the overflow type when there's enough input to probably overflow the box.  But that's very tricky to know as characters can be different sizes etc.
0
Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

 

Author Comment

by:Nicky Raven
ID: 9873466
that worked ta ill get back if i come across another problem ill give points out as soon as its been published on my intranet server

yours

HizShadow
0
 

Author Comment

by:Nicky Raven
ID: 9873757
sorry about this but ive been asked to ad a save button to the bottom of the page so it saves it a a .Doc file is there a way and i have no CGI script

yours painfully

HiZShadow
0
 
LVL 3

Expert Comment

by:mrh30
ID: 9873783
Outputting .doc files with Perl is quite hard work.  Best I can do is point you in the direction of http://use.perl.org/article.pl?sid=01/03/07/030233

I'm afraid I've never done it myself.
0
 

Author Comment

by:Nicky Raven
ID: 9873828
im using dreemwaever to create the page i have no understanding  of these programing languages (arrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr)

yours

HizShadow
0
 
LVL 3

Expert Comment

by:mrh30
ID: 9873841
Well, what you're asking for requires server-side scripting to save the data somewhere, which means you'll need to learn something about Perl or similar.
0
 

Author Comment

by:Nicky Raven
ID: 9873922
k ta

yours

HizShadow
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question