Solved

Having problem's

Posted on 2003-12-04
9
202 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
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…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

762 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

21 Experts available now in Live!

Get 1:1 Help Now