Jump to content

rahultailwal

Members
  • Posts

    70
  • Joined

  • Last visited

Posts posted by rahultailwal

  1. As i saw in phpinfo that looks same as in another server. There is sendmail_path, SMTP is on etc. The problem is from server configuration i guess. But i want to know what should be there to run mail server.

  2. Hi, I have a servers based on PHP Version 5.3.10-1ubuntu3.4 When i use mail function of php then my mails are not going. It is returning false. It could be server issue but i want to know what is the issue with it. What to do to fix it. I have tried to set sendmail_from in php ini. but nothing works. I tried mailer class but nothing happens. Thanks

  3. Hi, I am working on videos on a site. Now as we know we have different browsers available and we need to choose a player which can support all the browsers. Our html 5 video tag supports different video formats and works well with different videos.But for internet explorer less than 9 it makes a flash fallback. Now we can have lots of requirements with our video player. For example i have one requirement to hide controls from video player. Well there is an option to do it in html 5 to remove controls from tag. But we can see the controls again just putting controls by just editing the html by development tool like firebug for Mozilla. In internet explorer less than 9 if we see flash fallback then we also required to hide controls then it will be a double headache. Some times we need to use video events but again double headache as we have to think for all the browsers at the same time. So is there any good solution for this problem Thanks

  4. Hi, Html 5 tag works for all major browsers except ie6, 7 and 8. For these there is option for flash fallback. Now mozilla only works with webm or ogg video files. IE 9, safari and chrome works with mp4 files. Use this javascript to make your player more controllable. http://videojs.com/ Thanks, Rahul

  5. Somewhere in your application you want to delete some particular session variable but don't want to sign out from your application. Then you will use session_unset to unset a particular session variable. And when we log out from our application then we delete all the session data just using session_destroy().

  6. Your code is wrong in else. Use this. <script>function myFunction(){var x;var name=prompt("Please enter your name","Harry Potter");if (name!=null){x="Hello " + name + "! How are you today?";document.getElementById("demo").innerHTML=x;}else {x="Hello Stranger ! How are you today?";document.getElementById("demo").innerHTML=x;}}</script>

  7. the process could be, as i think, 1. Basically the remember me feature is for the users using their own system. No one else touch their computer system. Then their is no security issue.2. As i think the username and password both are saved in cookie in encrypted manner.3. After user browse page again, then cookie will be checked first with the database verification either valid or not.4. If valid then session variable will be set for that user.5. if he logout then all the cookie will be deleted again.

  8. The thing is if cookie is set you will again set the session variable and then redirect to the main page. No need to login again. And if cookie is not set it will go to login page. Simple :)

  9. Hello, As in login page with remember me feature. If user successfully logged in the system then you will definitely redirecting user to any other page. You can not use setcookie before header(location; index.php). It should be after header(). Thanks

  10. Make alert boxes on the basis of your conditions. You have to just use javascript alert() function. As i did in below code, it will alert three times. <!DOCTYPE html><html><head><script>function myFunction(){alert("I am an alert box1!");alert("I am an alert box2!");alert("I am an alert box3!");}</script></head><body><input type="button" onclick="myFunction()" value="Show alert box" /></body></html>

  11. Hi All, I need to login to zoho crm using a url which will be in my own site. But i am unable to do this as i read the zoho api, i got confused and i am not getting a right way to go forward. I need some code example or any good tutorial. Thanks,

  12. Hi use the below code. As i guessed, you want to show three columns value show in drop down. so just put the three column values by giving one space.Hope you want the same.<?include("sql.php"); include("auth.php"); $UID = $_SESSION['UID'];$sql="SELECT * FROM users where UID='$UID' AND Cnumber != ''";$result=mysql_query($sql);$options="";while ($row=mysql_fetch_array($result)) { $id=$row["Nname"]; $thing=$row["Nname"]; $options.="<OPTION VALUE=\"$id\">".$thing." ".$row["CNumber"]"." ".$row["address"]."</option>";}?><SELECT NAME=Nname><OPTION VALUE=0>Choose<?=$options?></SELECT>

  13. Hi all, The scenario of my problem is to replace some sting from a textarea where some default text is written. Suppose i have a word phone no is written there when i first come to that page. Now i have a textbox where i can put any phone no and a button to submit. After submitting phone no the phone no text will be replaced in textarea. Now the problem is suppose he do mistake of filling wrong phone no. so he will again write phone no in textbox but i have replaced all phone no word with given phone no so how can i make it working again. it will work only once. Hope you understand what i want to do. Thanks

×
×
  • Create New...