Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: sophielois
  • Content: Threads
  • Order by date
  1. sophielois

    adding image switcher function to bg images

    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...
  2. sophielois

    security feature giving me an errorr - sessions mysql

    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...
  3. sophielois

    javascript function and a bit of php?

    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...
  4. sophielois

    highlighting a mysql row if == 1

    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...
  5. sophielois

    reading the br as a line break when retrieving from mysql

    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...
  6. sophielois

    error with opening pdf file script

    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...
  7. sophielois

    another question about validating checkboxes

    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...
  8. sophielois

    apply 'checked' to checkbox if $var = checkbox value

    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[]"...
  9. sophielois

    mysql queery and if stament?

    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>"...
  10. sophielois

    passing array through url

    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> &nbsp;&nbsp;&nbsp;- <a...
  11. sophielois

    handling values form a multiple checkboxes

    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...
  12. sophielois

    javascript newbie - question about validating checkbox?

    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...
  13. sophielois

    Outlook express won't open!!! see the following error.......

    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...
  14. sophielois

    checking emails match

    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...
  15. sophielois

    a litlle problem for me

    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"...
  16. sophielois

    problem with newbie script writing to database

    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"...

Part and Inventory Search

Back
Top