Jump to content

kks_krishna

Members
  • Posts

    76
  • Joined

  • Last visited

    Never

Everything posted by kks_krishna

  1. HI, I want to make ajax call to update MySql database and return some values, it will be update with the page.How can I do that? Please guide me.
  2. Yes, I want to remove all..but the spaces will be replaed with "-" and also there should not more than one "-" continuosly like "---". It should be trimed to "-" Thanks, krishna
  3. HI, What is the problem if i am using the checkbox name without "[]". PHP is taking values only when we are using the "[]". but javascript is not working. so I have removed []. Please help me how to fix this problem. <input type="checkbox" name="labels" value="spring">Spring <input type="checkbox" name="labels" value="hibernate">Hibernate <input type="checkbox" name="labels" value="seam">JBoss Seam <input type="checkbox" name="labels" value="javafx">JavaFX <input type="checkbox" name="labels" value="jsf">JSF <input type="checkbox" name="labels" value="struts">Struts<br> <input type="checkbox" name="labels" value="jsp">JSP foreach($_GET['labels'] as $value) { echo $value; }
  4. I don't want to show any special characters other than "-".
  5. HI, I want to create urls dynamically when i am inserting the new data to database. ForExample, If the story title is : What is new in Site? It should be converted as : what-is-new-in-site.html It shouldn't allow any special characters in the URL. How can I do this?
  6. HI, How to create the cookies and store it in client using PHP. When user next time logged in it should be automatically logged in. thanks, krishna
  7. Thanks, don't mind, do you have any forums in PHP freaks related to .htaccess problems.
  8. HI, Now i got the problem. Its working. The problem is i am using URL rewriting. so its not able to get the values. Do you have any idea how to get the values when doing URL rewriting. basically file name is add_link.php. after url re wrting it is add_link.html Please help me.
  9. <form name="add_links" action="add_link.html"> <?php include("templates/link_header.php"); ?> <div id="contents"> <table> <tr> <td class="text_format"> Link Text <?php foreach($labels as $value) { echo $value; } ?> </td> <td > <input type="text" size="30" name="link_text"> </td> </tr> <tr> <td class="text_format"> Link URL </td> <td> <input type="text" size="30" name="link_url"> </td> </tr> <tr> <td class="text_format"> Description </td> <td> <textarea rows="10" cols="40" name="link_desc"></textarea> </td> </tr> <tr> <td class="text_format"> Label </td> <td> <input type="checkbox" name="labels" value="spring">Spring <input type="checkbox" name="labels" value="hibernate">Hibernate <input type="checkbox" name="labels" value="seam">JBoss Seam <input type="checkbox" name="labels" value="javafx">JavaFX <input type="checkbox" name="labels" value="jsf">JSF <input type="checkbox" name="labels" value="struts">Struts<br> <input type="checkbox" name="labels" value="jsp">JSP <input type="checkbox" name="labels" value="servlets">Servlets <input type="checkbox" name="labels" value="ejb">EJB <input type="checkbox" name="labels" value="jta">JTA <input type="checkbox" name="labels" value="jms">JMS <input type="checkbox" name="labels" value="jni">JNI<br> <input type="checkbox" name="labels" value="stripes">Stripes <input type="checkbox" name="labels" value="tapestry">Tapestry <input type="checkbox" name="labels" value="wicket">Wicket <input type="checkbox" name="labels" value="eclipse">Eclipse <input type="checkbox" name="labels" value="netbeans">NetBeans <input type="checkbox" name="labels" value="faqs">Interview Questions<br> <input type="checkbox" name="labels" value="java5">Java 5.0 <input type="checkbox" name="labels" value="java6">Java 6.0 <input type="checkbox" name="labels" value="java7">Java 7.0 <input type="checkbox" name="labels" value="scjp">SCJP <input type="checkbox" name="labels" value="scwcd">SCWCD <input type="checkbox" name="labels" value="scbcd">SCBCD<br> <input type="checkbox" name="labels" value="scja">SCJA <input type="checkbox" name="labels" value="scdjws">SCDJWS <input type="checkbox" name="labels" value="scea">SCEA </td> </tr> <tr> <td> <input type="submit" onclick="return validateLink()" value="Submit"> </td> </tr> </table> <?php $link_text = $_GET['link_text']; $link_url_id = ""; $link_url = $_GET['link_url']; $link_desc = $_GET['link_desc']; $link_tag = $_GET['link_tag']; $labels = array(); $this->$labels = $_GET['labels']; foreach($labels as $value) { echo $value; } ?>
  10. I used like this : <?php foreach($labels as $value) { echo $value; } ?> getting error like this : Warning: Invalid argument supplied for foreach() in /home/content/k/k/s/kkskrishna/html/dlinks/add_link.php on line 47
  11. Thanks. For reteriving I am using like this : <?php print("Label :".$labels[1]); ?> But its showing only the single character.
  12. Can i use like this : $labels = $_GET['labels'];
  13. HI, I have added 10 check boxhes in my html form. When I am submit the form it will be taken to info.php page.Now i want to get all the check boxes selected. How can I do that in PHP?
  14. HI, What is the use of php.ini file?
  15. Thanks. How to terminate the session when clicking on logout?
  16. Please check the code whether its correct : <?php include("UsersOperations.php"); $user = new UsersOperations; $user_name = $_GET['user_name']; $pass = $_GET['pass']; $result = $user->check_user($user_name,$pass); if($result==1) { session_start(); $_SESSION['auth'] = TRUE; $_SESSION['user_name'] = $user_name; header("Location: ../index.php"); die(); } ?> <?php $var = $_SESSION['user_name']; print($var); ?>
  17. HI, What is the difference between using print and echo. Normally for printing I am using print() method. what is the use of echo().
  18. How to reterive the values from session
  19. Its working fine for me. How can I terminate the session when user clicks on the LogOut button. Also guide me how to store the user login into cockies so that when user comes next time it should automatically logged in.
  20. How to set set $_SESSION['auth'] to TRUE.
  21. Thank you buddy.
  22. HI, i want to implement session in my site. If for a particular page should be accesses by only the loged in user. so I need to check whether the user is logged in or I shoud forward to Registration page or login page. Once the user is logged in we can use the userid to log the activities. How can we do this?
  23. HI, I am getting the date from mysql as "2007-07-04 18:00:55" in this format. While displaying I want to show as "04/07/2007". How can I format like that? Thanks, Krishna
  24. HI, I want replace the given string. The following are my requirements: eg. input string is " Hibernate Interc$%eptors - An Introduction EJB 3.0" the output string should be " Hibernate-Interceptors-An-IntroductionEJB-3-0" special characters should be removed. please help me.dot shd be replaced with "-". Thanks, Krishna
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.