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 IamaSherpa 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: shaolinf
  • Order by date
  1. shaolinf

    newbie help

    Hi Guys, If I have 2 tables named "Employee" and "department" and the EmployeeID from the Employee table is a foreign key in the the department table. It is a one-2-one relationship. Now if the Primary Key EmployeeID in the employee table is changed or updated or removed, then what should I do...
  2. shaolinf

    add color palette

    What if I wanted to add a font selecter and font size selecter ?
  3. shaolinf

    add color palette

    Hi there, How can I add a color palette to my html form? I want the user to beable to select any color from the palette which then will be to color of the page on the next load.
  4. shaolinf

    ListIterator problem

    Hi guys, Im using a vector to store my data and when I want to print it, it outputs the following: FT@19821f FT@addbf1 Here is the method and the call: Method in directory class: public void display() { ListIterator vIter = vec.listIterator() ; while ( vIter.hasNext() )...
  5. shaolinf

    cookies

    Im using this on index page to check if the cookie exists: $rcevd_cookies = $ENV{'HTTP_COOKIE'}; @cookies = split /;/, $rcevd_cookies; foreach $cookie (@cookies) { if ($cookie eq "login=true") { print "<META HTTP-EQUIV=refresh CONTENT=\"0;URL=frontpage.cgi\">\n"; } This is how the...
  6. shaolinf

    cookies

    Hi guys, If I want to set a cookie that will last for an hour how will I do that ?
  7. shaolinf

    How to check if checkbox is checked

    Thanks. Yes that is what I meant, selected and not selected. I've tried that code but it doesn't work. All i get is a white page: HTML <input type="checkbox" name="remember" value="on"> PERL/CGI my @checks = param($formdata{'usrname'}); foreach (@check) { if ($formdata{'usrname'} ==...
  8. shaolinf

    Read files

    Thats works chris, but even if I type in "u" into the box, it will give me a username found... so its checking the first letter and not the whole word.
  9. shaolinf

    How to check if checkbox is checked

    How do I check if my check box is checked ? <input type="checkbox" name="remember" value="on"> Remember Me<br> if($cgi->param($formdata['remember']) eq 'on'){ { print "checkbox selected"; } else { print "checkbox selected"; } that doesn't work, even if I change the condition to...
  10. shaolinf

    Read files

    lol, sorry about that. I've coded something now but I want to be more specific in my code. open(LOGIN1,"loginData.txt"); while ($ln = <LOGIN1>) { if($ln =~ /^[$formdata{'usrname'}].*$/ ) { print "username found"; die; } else { print "username not found"; }...
  11. shaolinf

    Read files

    Hi Guys, If I have an input from a form, and when the user presses the send button I want to verify that value against a text file. I know how to open the file, just don't know how I can compare the value against words in the text file. Any ideas ?
  12. shaolinf

    Generate html via perl

    What about something like: print "<html><head>"; print "</head><body>"; Note I'm using perl/CGI.
  13. shaolinf

    Generate html via perl

    Hi guys, How can I code in perl to dynamically generate the HTML pages ? Some exmaples etc and what does pp ~ mean/do ?
  14. shaolinf

    If statement help

    Hi Guys, Im making a form and when I process it and remove the "&" and "=" chars I want to check if the user entered any data. Here is the if statement: if ($formdata{'name'} == "" || $formdata{'username'} == "" || $formdata{'password'} == "" || $formdata{'date'} == "") { print "No data...

Part and Inventory Search

Back
Top