Jump to content

PHILIPS

Members
  • Posts

    17
  • Joined

  • Last visited

Everything posted by PHILIPS

  1. ok thx i look into them
  2. hello everyone,Could any body explain to me about sending data to a server. basically i would like to know;what languages i could use?what do i need?adv and disadv of using dif types of languages?I thank you for any help or guidance, anything that could help me like articles you know that might help me. thanks
  3. PHILIPS

    background help

    Thats great guys, thank you so much for the help. I am still very new to this, still learning. I have learnt alot. I do really appreciate the help. Thank you
  4. PHILIPS

    background help

    hey, thanks for your help. but i cannot seem to work it. I am not sure where i have to put these tages in to work. I am trying to get a grey background, but want the middle to be normal if you get me. like http://www.kingofpoker2007.com/. Can you help me please, thank you <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><head> <style type="text/css">body {background-color: gray} </style><script>var slideShowSpeed = 5000var crossFadeDuration = 3var Pic = new Array() Pic[0] = 'twork.jpg'Pic[1] = 'grad.jpg'Pic[2] = 'computers.jpg'Pic[3] = 'smile.jpg'var tvar j = 0var p = Pic.lengthvar preLoad = new Array()for (i = 0; i < p; i++){ preLoad[i] = new Image() preLoad[i].src = Pic[i]}function runSlideShow(){ if (document.all){ document.images.SlideShow.style.filter="blendTrans(duration=2)" document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)" document.images.SlideShow.filters.blendTrans.Apply() } document.images.SlideShow.src = preLoad[j].src if (document.all){ document.images.SlideShow.filters.blendTrans.Play() } j = j + 1 if (j > (p-1)) j=0 t = setTimeout('runSlideShow()', slideShowSpeed)}</script><meta lang="en" name="Description" content="Welcome to Online Education" /><title>Online Education</title><style type="text/css" />/* Main layout */div#container { margin-left:auto; margin-right:auto; width:700px; background-color:#FFFFFF;}/* Header and nav */div#header { height:50px; width:700px; clear:both; padding:0 0 20px 0;}div#header h1 { font-family:Copperplate Gothic Bold, Arial, Helvetica, sans-serif; color:#333; margin:0; float:left; font-weight:normal; padding:21px 0 0 17px;}div#header h2 { font-family:Georgia, "Times New Roman", Times, serif; color:#333; margin:0; float:left; font-size:11px; font-weight:normal; padding:29px 0 0 12px;}/* NAV background */span.o { color:#FF0000; }span.db { color:#333333; }div#nav ul { list-style-type:none; width:700px; margin:0; padding:8px 0px 10px 10px; height:25px; background-color:#333;}/* NAV */div#nav ul li { display:inline;}div#nav ul li a { display:block; padding:5px 7px 5px 7px; float:left; font-family:Arial, Helvetica, sans-serif; font-weight:bold; color:#FFF; text-decoration:none; font-size:12px;}div#nav ul li a:hover { background-color:#FF0000;}</style></head><body onload="runSlideShow()"> <div id="container"> <div id="header"> <h1><span class="o">Online</span><span class="db">Education</span></h1> </div> <div id="nav"> <ul> <li><a href="C:\Documents and Settings\owner12\My Documents\Project\j.html">Home</a></li> <li><a href="C:\Documents and Settings\owner12\My Documents\Project\d.html">About Us</a></li> <li><a href="">Forum</a></li> <li><a href="C:\Documents and Settings\owner12\My Documents\Project\Test.html">Test</a></li> </ul><br><br><table border="0" cellpadding="0" cellspacing="0"><tr><td id="VU" height=0 width=0><img src="1.jpg" name='SlideShow' width=700 height=150></td></tr></table><div style="float:right;width:230px;height:0px;border:0px solid #000000;"> <div class="newsbox"> <table cellpadding="0" cellspacing="0" border="0"><br><MARQUEE WIDTH="100%"><h3> News Board! </h3></MARQUEE> <!--A level--> <tr> <td width="97"><a href="test.html"><img src="grad.jpg" width="97" height="72" border="0" alt="A level tips" /></a></td> <td valign="top" class="fix"> <h3 class="fix">A LEVEL</h3> Which topic is best for you? <a href=""><b>Find out more...</b></a> </td> </tr> <tr> <td class="break" colspan="2"></td> </tr> <!--Revision--> <td width="97"><a href="test.html"><img src="grad.jpg" width="97" height="72" border="0" alt="A level tips" /></a></td> <td valign="top" class="fix"> <h3 class="fix">Revision </h3> Check out our easy to follow guide on Rivsing for exams. <a href=""><b>Find out more...</b></a> </td> </tr> <tr> <td class="break" colspan="2"></td> </tr> <!--Results--> <tr> <td width="97"><a href="test.html"><img src="grad.jpg" width="97" height="72" border="0" alt="A level tips" /></a></td> <td valign="top" class="fix"> <h3 class="fix">Results</h3> Find your results here <a href=""><b>Find out more...</b></a> </td> </tr> <tr> <td class="break" colspan="2"></td> </tr> <!--Past Exam Papers--> <td width="97"><a href="test.html"><img src="grad.jpg" width="97" height="72" border="0" alt="A level tips" /></a></td> <td valign="top" class="fix"> <h3 class="fix">Past Exam Papers</h3> View previous Exam papers <a href=""><b>Find out more...</b></a> </td> </tr> </table> </div> </div></body></html>
  5. PHILIPS

    background help

    hello everyonehow do i get a layout like this web site. well basically all i want to know is how to have a background like this web site http://www.kingofpoker2007.com/. thank you for any help
  6. thats brilliant thank you very much. :) *hugs* :E
  7. thats great it works, but before it answers correct or incorrect, the number 3 pops up. i cnt seem to see why?thanks for your help
  8. hello, I have a small problem i have a small test and every answer is the same, I cannot seem to change the script so it will let me have a different answer. Can anyone help change this please. <form name="q" action=" "><p>What is 5+6?</p><input type="radio" name="ff" >4<br><input type="radio" name="ff" >10<br><input type="radio" name="ff" >11<br><input type="button" value="Check!" onclick="checkIt()"><hr /><hr /><form name="r" action=" "><p>What is 10+6?</p><input type="radio" name="fi" >16<br><input type="radio" name="fi" >10<br><input type="radio" name="fi" >11<br><input type="button" value="Check!" onclick="checkIt()"></form><script>function checkIt(){if (w.ff[2].checked){alert("Thats right!");}else{alert("Go back to kindergarden!!!");}}function checkIt(){if (q.fi[1].checked){alert("Thats right!");}else{alert("Go back to kindergarden!!!");}}</script>
  9. PHILIPS

    perl problems

    hello everyone,im having troubel making a perl program that will split a list of URLs into .com's and others, and then getting the program to count how many times .com was found, as well as how many times each indevidual address was found. e.g ikea 3 , google 4. The list i am using has each address seperated by line. i can figure out how to seperate the addresses, but i just cant get it to count the results. Can anyone please help :)here is my poor attempt (pulling hair out ://) #!/usr/bin/perl -wsub addressFilter{foreach $line{@SplitAddress =split(/./,$line);$nametofind = @splitAddress[1]if @SplitAddress[2] eq "com" || ".co.uk"{ if (grep {@SplitAddress[2]} @busC) { @array = qw(@busC); %index; @index{@busC} = (0..$#array); $search = @SplitAddress[2]; $index = $index{$search}; $busC[%index] ++;print "<BR>"; } } }
  10. yeh i have, thx for your help guys
  11. Thank you very much, you have no idea how many hours i have spent.
  12. hello everyone,how do you use ereg in PHP to validate option boxes on forms?thank you for your help
  13. hello everyone,I have been stuck on this assignment for ages and would be very gratefull if anybody could help me or point me in the right direction. I have been trying for ages but not having much luck. Thank you for any help received.#!/usr/bin/perl -wuse CGI':standard';use CGI::Carp "fatalsToBrowser";use DBI;sub err(){print "Error in @_[0] field - @_[1]";print "</BODY> <BODY BGCOLOR=\"white\">";exit;}print header;print "<HTML> <BODY BGCOLOR=\"white\">";$PRICE=param('PRICE');$BEDROOMS=param('BEDROOMS');$COMMENTS=param('COMMENTS');$LOCATION=param('LOCATION');$PROPTYPE=param('PROPTYPE');$NAME=param('NAME');$TELEPHONE=param('TELEPHONE');$EMAIL=param('EMAIL');if(($PRICE !~ /\A\d+\Z/) || ($PRICE>1000000 || $PRICE<0)){&err("PRICE",$PRICE);}if(($BEDROOMS !~ m/\A\d+\Z/) || ($BEDROOMS>10 || $BEDROOMS<1)){&err("BEDROOMS",$BEDROOMS);}if($COMMENTS !~ m/\w|/){&err("COMMENTS",$COMMENTS);}if($LOCATION !~ m/London|Manchester|Coventry|Leeds/i ){&err("LOCATION",$LOCATION);}if($PROPTYPE !~ m/Freehold|Leasehold/i ){&err("PROPTYPE",$PROPTYPE);}if($NAME !~/\A[a-z]+\Z/i){&err("NAME",$NAME);}if($TELEPHONE !~ m/\A\d+\Z/i){&err("TELEPHONE",$TELEPHONE);}if($EMAIL !~/\A[a-z]+\@[a-z]+\Z/i){&err("EMAIL",$EMAIL);}if($PROPTYPE eq "FREEHOLD"){$PROPTYPE="F"};if($PROPTYPE eq "LEASEHOLD"){$PROPTYPE="L"};print "<H1> Search Matches <H1>";$query=qq(SELECT * FROM houses where BEDROOMS>='$BEDROOMS' AND PRICE<='$PRICE' AND LOCATION='$LOCATION' AND PROPTYPE='$PROPTYPE');$user='';$pass='';$dbh=DBI->connect('DBI:mysql:database=staffkeithy;host=possum',$user,$pass) or die "Can't connect to database";$sth=$dbh->prepare($query);$sth->execute;if($sth->rows>0){print "<table border=\"1\"> ";print "<tr> <td> Price </td> <td> Bedrooms</td> <td>Comments </td> </tr>";while(@result=$sth->fetchrow_array){print " <tr> <td> £ $result[0] </td> <td> $result[1] </td> <td> $result[2] </td> \n";}print "</table>";}else{print "No Searches found\n";}$sth->finish;$dbh->disconnect;
  14. yeh i have tried that, but when i click check, nothing happens. so frustrating ://
  15. Try document.q.f[1].checked) what do u mean?. i dnt understand, sorry
  16. hello, im doing my A levels and i was wondering if any1 can help me on this coursework. basically i have to set up a educational web site that tests students. I am able to create questions, (below is my poor attempt) but the script does not work. can any1 help me please, i would be very gratefull. thank you <BODY><form name="q" action=" "><p>What is 5+5?</p><input type="radio" name="fi" >4<br><input type="radio" name="fi" >10<br><input type="radio" name="fi" >12<br><input type="button" value="Check!" onclick="checkIt()"></form><script>function checkIt(){if (q.fi[1].checked){alert("Thats right!");}else{alert("Go back to kindergarden!!!");}}</script>If any body knows how to create questions better please advice me. im still learning ://
  17. hello, I was wondering if it be possible if any1 could help me construct a test that allows me to input questions which have multiple answers. e.g. 5+5=a. 4b. 10c. 12Thanks for any suggestions, advice, or help.
×
×
  • Create New...