bindiya
Members-
Posts
97 -
Joined
-
Last visited
Never
Everything posted by bindiya
-
How will i check whether the characters i am entering is numeric
bindiya replied to bindiya's topic in PHP Coding Help
still i get error iam pasting my old code.to this code i need to print the message if the amount is not entered or the is not in nmbers. echo "<table width='599' align='center'><tr><td></td><td>Username</td><td></td><td> $username</td><td></td></tr>". "<tr><td></td><td>Name</td><td></td><td> $fname</td><td></td></tr>". "<tr><td></td><td>Email</td><td></td><td> $email</td><td></td></tr>". "<tr><td></td><td>Company Name</td><td></td><td> $companyname</td><td></td></tr>". "<tr><td></td><td>Address</td><td></td><td>$address</td><td></td></tr>". "<tr><td></td><td>State</td><td></td><td> $state</td><td></td></tr>". "<tr><td></td><td>Country</td><td></td><td> $country</td><td></td></tr>". "<tr><td></td><td>Website</td><td></td><td> $website</td><td></td></tr>". "<tr><td></td><td>Description Of Payment</td><td></td><td> $pay_desc</td><td></td></tr>". "<tr><td></td><td>Amount in USD</td><td></td><td><input type='text' name='amnt' id='amnt' /> </td><td></td></tr>"; } -
How will i check whether the characters i am entering is numeric
bindiya replied to bindiya's topic in PHP Coding Help
but my code is itself inside an echo at that time how will i check -
I have a txtarea which has to be made blank by removing all the spaces i it on load. how can i do that
-
error printing like "username and login doesnot match ' in my popup window is the one i need, after login check
-
but my php code is in the same page and when i alert the error message through javascript it works.But the echo error mesg doesnot work
-
I have a login modal window which is user for entering the login and password, and check it with the database.If the login and password is not there i nthe database the message shuld be displayed in the popup window itself. But in my case the popup window disapperas if the login details are wrong. how shuld i code for this. My code is pasted below. <div id="cover"></div> <div id="dialog"> <form action='' method='post' name='onlinepay'> <table width="388" border=1><tr><td colspan="4" align="right"></td><td align="right"><a href="index.php" onclick="closePopUp('dialog');"><img src='images/close.jpg' align="right" /></a></td></tr> <tr><td width="11" ></td> <td width="90">Username </td> <td width="57">:</td> <td width="147"><input type='text' name='username' id='username' /></td><td width="59"></td> </tr> <tr><td></td><td>Password</td><td>:</td><td><input type='text' name='password' id='password' /></td><td><input type='submit' name='submit' id='submit' value="Login" /></td></tr><tr><td colspan='5'><?php //connection statements goes here if(isset($_POST['submit'])){ $username=$_POST['username']; $password=$_POST['password']; $sql="select username,password from register where username='$username' and password='$password'"; $result=mysql_query($sql); $row=mysql_fetch_row($result); $row1=mysql_num_rows($result); if(($row['0']==$username) && ($row['1']==$password)){ header ('Location:themes/index.php'); } else{ echo "Username and password doesnot match"; } } ?> </td></tr> <tr><td colspan="5"><hr color="#999999" /></td></tr><tr><td></td><td colspan='2'><a href="javascript:void window.open('themes/forgotpassword.php?fullview=Y','','height=350,width=525,resizable=yes,scrollbars=yes')">Forgot password? </a> </td> <td><a href='register.php'>New User</a></td> <td align='center'> </td> </tr> </table> </form>
-
I have a radiobutton with 5 sub radiobutton option.If only i check this radiobutton the options need to be showed.Is there any way to dothis.
-
I have a html form. i have the fields like username,password,firstname,address. I have placed the username inside another form because onblur event this textfiels value should b recieved by the js. But js is not recieving the value.Gives the error'document.usercheck.username is null or nota an object. My code is <script language="javascript"> function submit_check(){ var name=document.usercheck.username.value; location.href="user_availability.php?login="+name; document.forms['usercheck'].submit(); } html------------- <form name='registration' action='' method='post' onsubmit="return verify();"> <table width="599" align='center'> <tr><td colspan='5'></td></tr> <tr><td width="33"></td> <td width="187"><!--UserName<suponblur='submit(this.value);'>onblur='submit_check(this.value);'--> User Name <font color="#CC0000">*</font></sup> </td> <td width="22">:</td> <td width="148"> <div> <form name='usercheck' method="post" action=''> <input name="username" type="text" id="username" value="" maxlength="15" onblur="submit_check();" /></td><td width="185"></form><</td> </tr> <tr><td width="33"></td> <td width="187">Password<sup><font color="#CC0000">*</font></sup></td> <td width="22">:</td> <td width="148"><input name="password" type='text' id='password' /></td><td></td></tr> <tr><td width="33"></td> <td width="187">Re Password<sup><font color="#CC0000">*</font></sup></td> <td width="22">:</td> <td width="148"><input name="repassword" type='text' id='repassword'/></td><td></td></tr> </table></form>
-
php code needed in displaying the datas frm db in a new line
bindiya replied to bindiya's topic in PHP Coding Help
thanks for the google serach -
php code needed in displaying the datas frm db in a new line
bindiya replied to bindiya's topic in PHP Coding Help
understood ur code.but some doubt ,suppose there are more lines of description for some id(another field,a primary key).Then how will i use this code? eg id description (no of rows) 1 4 rows are there 2 1 row only 3 8 rows -
php code needed in displaying the datas frm db in a new line
bindiya replied to bindiya's topic in PHP Coding Help
i didnt understand what u were explaining -
php code needed in displaying the datas frm db in a new line
bindiya replied to bindiya's topic in PHP Coding Help
$sql = "select * from product where reference_no = '".$reference_no."'"; $sqlquery = mysql_query($sql); $sql_project_fetch_array =mysql_fetch_array($sqlquery); echo "<table><tr> <td class="tableCellOne"> </td> <td class="tableCellOne">Description</td> <td class="tableCellOne"> <?php echo str_replace("<p>"," ",$sql_project_fetch_array['description']); ?></td> </tr> -
I hav a php page which takes data from the db.But the problem i am facing is for a particular fild in database ,i have long data,which i need to b displayed in a wordwrap way eg my data is " Description need a site for school gave order on 12-10-2010 work started on 12-10-2010 " this shuld be displayed as "Description need a site for school gave order on 12-10-2010 work started on 12-10-2010" Description is the field in the database and rest of them are the datas in it
-
submitting only a particulat field whene there are many fiels in a form
bindiya replied to bindiya's topic in PHP Coding Help
do i need to code this way <form name='usercheck' method="post" action='useravailability.php'> <input name="username" type="text" id="username" value="" maxlength="15" onblur='submit(this.value);'/></td><td width="185"></form> -
submitting only a particulat field whene there are many fiels in a form
bindiya replied to bindiya's topic in PHP Coding Help
the problem is in my form i have only one submit button.But before clicking that submmit button i nned a textfield to be submitted when the mouse goes to the second textfield, -
thank u for the code.It works well ,if i check more than one checkboxes.But if i check for only one checkbox it gives me errors. what will be the reason? the error is Warning: array_map() [function.array-map]: Argument #2 should be an array in /home/content/77/6911777/html/admin/themes/view_res.php on line 87 Warning: implode() [function.implode]: Invalid arguments passed in /home/content/77/6911777/html/admin/themes/view_res.php on line 87
-
getting error in this useravailability check code
bindiya replied to bindiya's topic in PHP Coding Help
<form name='registration' action='' method='post' onsubmit="return verify();"> <table width="599" align='center'> <tr><td colspan='5'></td></tr> <tr><td width="33"></td> <td width="187"> User Name <font color="#CC0000">*</font></sup> </td> <td width="22">:</td> <td width="148"> <div> <input name="username" type="text" id="username" value="" maxlength="15" /><span id="msgbox" style="display:none"></span></div></td><td width="185"></td> </tr> <tr><td width="33"></td> <td width="187">Password<sup><font color="#CC0000">*</font></sup></td> <td width="22">:</td> <td width="148"><input name="password" type='text' /></td><td></td></tr> </table></form> -
getting error in this useravailability check code
bindiya replied to bindiya's topic in PHP Coding Help
notthing is echoed.!!!!!!!!! -
getting error in this useravailability check code
bindiya replied to bindiya's topic in PHP Coding Help
i check the username with database content.So if the username is available or not available i get the message on the left side of the inputbox "Username is available to register". -
I am writing a code using jquery in a php page to check the username availabiltiy,but getting error ie every time username is available is the message i am getting. the code is $(document).ready(function() { $("#username").blur(function() { //remove all the class add the messagebox classes and start fading $("#msgbox").removeClass().addClass('messagebox').text('Checking...').fadeIn("slow"); //check the username exists or not from ajax //$.post("themes/user_availability.php",{ username:$(this).val() } ,function(data) $.post("themes/user_availability.php",{username:$(this).val() } ,function(data) { if(data=="no") //if username not avaiable { $("#msgbox").fadeTo(200,0.1,function() //start fading the messagebox { //add message and change the class of the box and start fading $(this).html('This User name Already exists').addClass('messageboxerror').fadeTo(900,1); }); } if(data=="yes") { $("#msgbox").fadeTo(200,0.1,function() //start fading the messagebox { //add message and change the class of the box and start fading $(this).html('Username available to register').addClass('messageboxok').fadeTo(900,1); }); } }); }); }); php file user_availability.php <?php $login=$_POST['username']; $sql="select username from web_payregister where username='$login'"; $result=mysql_query($sql); if(mysql_num_rows($result)>0){ echo "no"; }else{ echo "yes"; } ?>
-
code to scroll the webpage to the middle onload
bindiya replied to bindiya's topic in Javascript Help
<script> function pageScroll() { window.scrollBy(0,1000); </script> </head> <body onLoad="pageScroll();">