Jump to content

bleustreak12

Members
  • Posts

    73
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

bleustreak12's Achievements

Member

Member (2/5)

0

Reputation

  1. I am getting this error when I use this header("Location: /"); to redirect to home page.I believe there is a javascript alert which come before this is called, that gives the below error, I cannot remove the alert so is there nay other way I can go about redirecting without giving me the below error ? A PHP Error was encountered Severity: Warning Message: Cannot modify header information - headers already sent by (output started at /home/dsdsd/application/core/MY_Controller.php:dsdsds)
  2. similar to how we have onfocus and onclick on input tags I am using the below method( if the method is wrong please let me know what would be the proper method ) for validating and submitting a form through javascript when someone presses enter on a textbox in a field in a form Example when someone writes the password in the password field and presses enter (when the cursor is on the password field) the form should validate and submit. I even have a submit button but I want the same thing to happen when enter has been pressed on the textboxes I am using this right now onkeypress=‘if (event.keyCode == 13) { validate(); }’ for my textbox fields the issue over here is that when the history of my text box shows below my text box and I select it by pressing enter it does not take the value first in my text box. It straight away validates the value in the text box Example: I have typed abc in my email textbox, I get [email protected] below my text box showing that I had typed that earlier, now when I do down by pressing the down arrow and pressing enter it does not take [email protected] in my text box but straight away runs validate() and gives me an error as wrong email format. I believe it should first take my old value in the text box and then run the validate function The issue is that it should validate and submit form when enter is pressed in input(textbox) field, but currently it does not select history and run the javascript validation function I am using codeigniter 2.1.0 but I thing this comes in javascript domain
  3. I am using this number_format($variable,2,'.',','); Is this right?
  4. Thanks There are certain places where I need it to be double So I believe it should be echo (float)$Price; Right?
  5. 0 down vote favorite share [g+] share [fb] share [tw] In my html I have <input type="hidden" name="Code_value" value="xyz"> <input type="hidden" name="Code_value" value="abc"> <input type="hidden" name="Code_value" value="rst"> when i submit I take it in my ASp.net code I take them as string Items = Request.Form["Code_value"]; the value of Items is xyzabcrst in PHP $Items=$_POST['Code_value']; The value of items is rst It takes the last value in php is it because there are multiple Code_value items if so why is it not taking just the last value in Asp.net
  6. empty function takes 0 also as empty, what if my $_SESSION["cart"]=0
  7. will this code check if value is null if($_SESSION["cart"] != null)
  8. I have the following code in asp.net Convert.ToDouble(Price) and I am confused should I use $value= number_format($Price, 2, '.', ''); or echo round($Price, 2); CAn anybody help me as to what it will be am I not using some PHP function
  9. Obj_12.Amount.ToString("N2"); will convert 987.1 to 987.10 I need the proper decimals
  10. What will be its PHP counterpart?
  11. I have written this in my asp.net application and have to now convert it to php string money_amount = ""; money_amount = Obj_12.Amount.ToString("N2");
  12. Any ideas for php and javascript/Ajax - script for image editing?
  13. I would want one which could be easily integrated into a php website preferably Joomla.I understand that mostly server side code is required but I had seen one with Javascript and Php which was quite good but I cannot remember right now
  14. I have tried searching on google but have not found a php image editor which allows me to draw, put effects on and image using the GD library, any good links or scripts.? I want the user to be able to draw with his mouse on an image
  15. Thanks nice link but I cannot find a similar maximize and minimize button in the dialog the client is very adamant about having exact popup to http://prototype-window.xilinus.com/samples.html first one. I would really like it if jquery was able to achieve this
×
×
  • 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.