Thanks Kaht, thats really helpful.
From what i can tell the following should work, but unfortunately it doesn't.
Can you help
<html>
<head>
<style type="text/css">
.tableBack1 {
background:url(newimages/newfront/img1.jpg);
}
.tableBack2 {
background:url(newimages/newfront/img2.jpg)...
ok looked into math.random
So the math:random function returns a random number from 0 to 1.
I'm still unclear how i would
call the function with the onload handler of the body tag
and then
program it to pick a random className from what you define
really appreciate any help
Soph
Hi Kaht, thanks for the advice and the code.
Unfortunatley i need something that doesn't use buttons to display the bg images, I need somethings that randomaly chooses a different image to display every time the page loads.
Thanks
Soph
Hi guys,
Could someone give me some advice how to use the following script so that it will randomly change a background image.
this is the script im using that randomly changes the image being displayed when the page ios loaded.
<SCRIPT LANGUAGE="VBScript">
<!--
Sub Window_OnLoad
Dim...
hi DRJ478
ok so i could set
$_SESSION['authorized'] = "somerandomstring";
when a user successfully logs in and then do something like this on each page
[code]
<?
session_start();
header("Cache-control: private");
$sec_check="somerandomstring";
if ($_SESSION['authorized']!=$$sec_check){...
there is no credit cards or information of that sort just privacy issues i suppose.
So checking that the username and password registered in the session variables match that found in the database should serve secure enough?
oops another error
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/n/v/nvqwandp/public_html/nvq/index.php on line 8
???
ok cool, i like it. Thank you
DRJ478 could you give me your thoughts on this as a security device.
Will it do??? or should i add more to it?? Is it especially vulnerable??
I was just checking to see if the user had a couple of sessions registered and if they matched a certain variable. But i...
Hi,
Im trying to put togther an include file that im putting at the top of each "restricted to registered users page" to act as a security check
heres the code im playing with
<?
session_start();
header("Cache-control: private");
// 1st security check
$sql = mysql_query("SELECT * FROM...
How can i enable a user to click a link which triggers an alert saying something like
"are you sure you want to do that"
then if the user clicks yes it continues to the url if the user clicks no it stays where it is.
been trying to play around with this
function checkCom(url) {
if...
I don't mean to hijack this post, but how do you get the users print box to open up as soon as the html page has loaded??
Thats exactly what im looking for
Soph
Is it possible to change the colour of a certain row within a mysql result.
ill try and explain what i mean
<?php
$result = mysql_query("SELECT * FROM candidate ORDER BY first_name");
while($row = mysql_fetch_object($result))
{
echo "<tr bgcolor='#ffffff'>";
echo...
The data is getting put into the databse from a text area.
The <br> is not being typed, it is appearing when pressing
return.
What do i need to be looking at doing so that if a user hits return it would create a html <br>?
Soph
ok guys,
echo nl2br($row->answer);
this works. Its now displaying properly!!
How would i add this code so it will display all rows correctly.
I just thought could it be because im working on a subdomain which has ssl installed??
thanks for all the help
Sophxx
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.