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,
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...
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...
hello.....again,
Im displaying data from a mysqltable. In the table the data looks like this
hello<BR> what<BR> is this working or not<BR> I<BR> hope so<BR>
How do i display the data so that it reads the <br> as line breaks?
at the moment it is displaying the data like this
hello what...
Hi all,
Im getting the following error when trying to open a pdf file using the follwong code
ERROR
!Acrobat could not open HSC21[1].pdf because it is not a supported file type or the file has been corrupted for example it was sent as an email attachment and wasn't correctly decoded
<?php...
Hi again,
this is really a continuation from this thread:
http://www.tek-tips.com/viewthread.cfm?qid=1159198&page=4
Where i needed to limit the user to only selecting 2 checkboxes.
Because the form now has 2 fields checked the javascript supplied in my last post allows the user to check 4...
Hi, ill try and explain the best i can.
i have 2 variables that are passed to a page which holds a form.
These are the two variables
$unit1 = H21
$unit2 = H22
and this is the form
<form action="add.php" method="post" onsubmit="return doSubmit();">
<input type="checkbox" name="cb[]"...
hey,
I have a little problem i cant work out how to do the following
<?php
$result = mysql_query("SELECT * FROM candidates ORDER BY Name ASC");
while($row = mysql_fetch_object($result))
{
echo "<tr>";
echo "<td>$row->first_name $row->last_name</td>"...
Is it possible to pass an array through a url?
I cant get it to work...
this is what im doing
<?
$units = $_POST['cb']; /* array which chosen units are stored */
?>
<?
echo "<td colspan='2'><font face='Verdana, Arial, Helvetica, sans-serif'><b>Personal Details</b> - <a...
Hi,
im trying to display the variables from a form which uses checkboxs'. The user is only allowed to select 2 checkboxes.(thankyou guys in the java forum)
How do i grab the 2 values that have been checked and turn them into 2 variables and display them?
the form
<script...
Hello,
i have very little knowledge of javascript but need a little for a form im using. can anyone help??
I need to limit people from only being able to check 2 check boxes.
here is the code for the form im using
<form action="add3.php" method="post" onsubmit="return check(this)">
<table...
Hi, I just tried to open out look express and the following error caem up:
"Outlook Express could not be started. The application was unable to open the Outlook Express message store. Your computer may be out of memory or your disk is full. Contact Microaoft support for further assistance...
Hi,
im trying to make sure that users input there correct email address by asking them to enter it twice and checking that what they have entered matches. If they have entered it incorrectly twice well hey what can i say.... anyway this is all i have at the minute, ive never attempted to do...
Hi guys and galls,
well im stuk.
Im using a custom shopping cart me and a friend have been working on.
Im trying to send an email to the customer services giving details of what products have been ordered.
here's how the orderd products are displayed onscreen
<div id="pi"...
Hi ,
Just starting to learn the simple things to do with PHP. Got a little problem.
I have a form which has a checked tick box so users can subscribe to newsletter
**This is just a extract from the form
<tr>
<td height="20" class="contactform">
<input name="mail" type="checkbox"...
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.