bala kan

Ranch Hand
+ Follow
since Aug 20, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by bala kan



Hi Friends,


Good morning to everyone,i attended one interview regarding java technologies.. there they asked us to write a program to swap two different types of objects.. for instance, two variables int and char variables are to be interchanged.. after interchanging, we should print their values..


as a beginner in Java,I wrote this program..

..


the result was

before swapping i and c is 98 a

after swapping i and c a 98

if I made any mistakes.. please tell me..your help will be highly appreciated

Regards,
Bala



11 years ago
Hi Guys,


good morning to you all.. what is meant by j2EE technologies.. what are the components used to make up J2EE.. i have searched in google about J2EE.. as far as i know, EJB, JSF, RMI,servlets,JSP,XML etc. are the components of J2EE.. please let me know about J2EE technologies..


Thanks in Advance

regards,
Bala
Hi Friends,


Good morning to you all.. i would like to create the div in which marquee styles(css) should be done..

In Google Chrome
when i use this class "marq" , it works





html codings are


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link href="css/samplemarq.css" type="text/css" rel="stylesheet" />
</head>

<body>
<div class="marq">

Hi Friends, welcome to the web designing!!!
</div>
</body>
</html>


but, in mozilla firefox, since i have tried the two types of codes in css
it doesn't work..














php


Hi Friends,



Thank you so much for your quick replies.. i have created one index file in php (index.php) and it should post into another page(welcome.php) and display some message..


But, it gives the following error:

The requested URL /sampleproject/welcome.php; was not found on this server



i have the welcome.php file in my sampleproject folder.. but, still it shows this error..

please rectify me..

Regards,
Bala
11 years ago
PHP

Hi Friends,


I would like to use the tpl file, php file and html file just to display the welcome message..


tpl file is


php file


Html file



but it gives an error:

Warning: Smarty error: unable to read resource: "welcome.html" in C:\wamp\www\tpl\lib\Smarty.class.php on line 1094



please rectify me...

Thanks in advance..

Regards,
Bala
11 years ago
PHP
Hi Friends,

Good morning to you,

I have been creating simple index page in which i use one text box and submit button and i use php smarty also..

requirements are:
when i click after entering some text in text box, it should be posted into the another php ("companyinfo.php") ..

for instance, if i enter some company name in text box , it should fetch the corresponding row from the table.. and those records should be displayed in the "companyinfo.php"..




index.php codings are




javascript codings are:
chang_page.js



companyinfo.php coding are



it shows the following error

Notice: Undefined index: search in C:\wamp\www\phpdemo\companyinfo.php on line 8



please rectify me..

Thanks in advance



Regards,
Bala
11 years ago
PHP
Hi Nick,


Good Morning to you,


My PHP Codings are








My Html codings are:

<form action="#" method="post">
<img src="images/text1.gif" alt="" width="56" height="11" />
<input type="text" class="input" name="username" />
<img src="images/text2.gif" alt="" width="56" height="11" />
<input type="text" class="input" name="password"/><br />
<input type="submit" class="button" value="Enter" /><br>
<div id="err1" style="display:none;"></div>

this div will be hidden by default.. and it should be showed when the given login id and password do not match


<!--<input type="button" class="button" value="Enter" /><br />-->
<input type="checkbox" class="checkbox" /><img src="images/text3.gif" alt="" width="70" height="13" /><br />
</form>
11 years ago
PHP
Hi Nick,

Good morning to you, HTML codings are


<form action="#" method="post">
<img src="images/text1.gif" alt="" width="56" height="11" />
<input type="text" class="input" name="username" />
<img src="images/text2.gif" alt="" width="56" height="11" />
<input type="text" class="input" name="password"/><br />
<input type="submit" class="button" value="Enter" /><br>
<div id="err1" style="display:none;"></div>

this div will be hidden by default.. and it should be showed when the given login id and password do not match


<!--<input type="button" class="button" value="Enter" /><br />-->
<input type="checkbox" class="checkbox" /><img src="images/text3.gif" alt="" width="70" height="13" /><br />
</form>



But, it gives me the problem.. Help me..

Thanks in Advance..


Regards,

Bala


11 years ago
PHP


Hi Nick, after removing the space between "java script"in <script> block.. it doesn't work..

rectify me

Thanks in advance



Regards,
bala
11 years ago
PHP
Hi Friends,

good morning to you all and Thanks for your quick responses.. I have to call javascript function within PHP.. my requirement is div "err1" should be displayed in the below mentoined else block.. but, it did not display..


My PHP codings are



my javascript codings are



please rectify my mistakes.. Thanks in advance..


Regards,
Bala
11 years ago
PHP
Hi Guys,

I am doing a login page which contains user name and password..

I need to validate the username using regular expression
the criteria is as follows:
1)It can contain either alphabets, special characters(-,'',_) or numbers..
2)length should be minimum of 8 characters and maximum of 20 characters..

so, my codings to validate the username is




"if(!(/^[a-zA-Z0-9/-_ ]{8,20}$/).test(uid))" does not validate the above mentioned criteria.. please clarify me

Thanks in advance

Regards,
Bala


11 years ago
PHP
Thank you Nick..
11 years ago
PHP
Hi Friends,


I have to create a user registration page with two fields (Username and Password)..

so, i use three php files
a)index.php // use to create the two fields
b)registration_script.php // use to configure the server and database and insert the new record into the table
c)success_script.php // if successful means, this page will be displayed


but when i use the <input type="submit"> it gives me the desired answer.. but, if i use the <input type="image"> it doesn't give the answer...


the codings are

index.php



registration_script.php




success_register.php





please clarify me.. Thanks in advance

Regards,
Bala
11 years ago
PHP
Hi Friends,

Good morning to you all... I am beginner in php.. i am using wampserver to use php files.. now I am using the default user "root".. i would like to create the new account with password.. please tell me the way to do it..

Thanks in Advance..

Regards,
Bala





11 years ago
PHP
K, ulf.. just now i have edited the post.. please check it and clarify me

Regards,
Bala
11 years ago
PHP