Solved

Having problem's

Posted on 2003-12-04
9
203 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:HizShadow
  • 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:HizShadow
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
 

Author Comment

by:HizShadow
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:HizShadow
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:HizShadow
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:HizShadow
ID: 9873922
k ta

yours

HizShadow
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Bootstrap 3 website error 14 47
Adding a Li to a UL after a specified Li contents 2 47
Form Submit falis 6 29
Bootstrap on PLNKR 3 16
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

863 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now