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...
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.
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() )...
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...
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'} ==...
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.
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...
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";
}...
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 ?
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...
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.