User Profile

Collapse

Profile Sidebar

Collapse
altonator
altonator
Last Activity: Jan 15 '09, 12:08 AM
Joined: Jan 19 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • codyshea2000
    codyshea2000 posted a Visitor Message for altonator
    well im useing a free website builder that alows you to edit html all i did is just put the form on the contact us page message me back
    See more | Go to post

  • altonator
    replied to IE warning "Page has expired"
    in PHP
    The problem is that when you submit the form (using POST) IE wont let you view that page again because it doesn't want to submit the data again.

    This is kind of a good idea, because if you've submitted a form with your credit card details to buy something then you wouldn't want to submit it again when using your back button cos you'd end up buying it twice.

    Firefox will ask you if you want to submit it again. But a lot...
    See more | Go to post

    Leave a comment:


  • Codyshea, you sent me a personal message or something? I can't find it now, but you said you were using Firefox.

    I've tried your code and it seems to work. Although there seems to be a stray </p> tag on line 8. It's not effecting anything, but you should take it out.

    Are you sure there isn't something somewhere else in your page that's causing the problem?
    See more | Go to post

    Leave a comment:


  • altonator
    replied to Cookie values in php
    in PHP
    There are several ways of doing what you're trying to do. In fact it's probably THE most common thing in PHP ever.

    Your method is slightly odd.

    Firstly, using javascript to redirect is silly. If the user has Javascript disabled then they wont be redirected. They'll just see an empty page.

    **IF** you want to redirect then do it in php:
    Code:
    <?php
    header("Location: some_other_page.php");
    ...
    See more | Go to post

    Leave a comment:


  • altonator
    replied to Which is lighter on the server?
    in PHP
    What?

    "if val 3 will equal the same value as $i , is there any positive to leave it in the sql query?"

    I don't understand what you're asking.
    See more | Go to post

    Leave a comment:


  • altonator
    replied to Playing a sound in javascript
    Hmmm... without doing some research on Google I don't really know.

    You could do it in Flash and trigger it from Javascript.
    LongTail Video and the JW Player has a media player that has a javascript API, so you could load the jukebox into a hidden <div> somewhere and then use javascript to tell it which sound to play and when.
    See more | Go to post

    Leave a comment:


  • altonator
    replied to Changing z-index and opacity in IE
    Hi, unfortunately changing style.display is a bit useless, because in order to get one to fade in/out over the other you need to have them both displaying and be able to change the stacking order (ie swap which one is on top).

    I could fade the first one to nothing, then change that one to display='none' and change the 2nd one to display='block' , and then fade the second one in. But that's not really the effect that I'm after. I need...
    See more | Go to post

    Leave a comment:


  • altonator
    replied to error logging
    in PHP
    . .
    See more | Go to post
    Last edited by altonator; Jan 2 '09, 08:44 AM. Reason: I wrote something stupid. Deleting my post.

    Leave a comment:


  • altonator
    replied to Where is the php.ini file located?
    in PHP
    Are you using a PC or a Mac? And which (version of the) operating system?

    Actually, if you make a php script and put this in it:
    Code:
    <?php
    
    phpinfo();
    
    ?>
    Then call that page in your web browser, it should display all the info about your php installation, and somewhere it says where your php.ini file is saved. I think it says 'ini path' or something like that.

    When you find...
    See more | Go to post

    Leave a comment:


  • codyshea2000
    codyshea2000 posted a Visitor Message for altonator
    im useing Firefox can you take my code and show me what you mean please?
    See more | Go to post

  • What says the method 'post' is not allowed? Is your web browser saying this? Or is PHP saying this? I'm guessing it's your web browser. If so, what browser are you using? Internet Explorer? Firefox? Safari? Have you tried it in a different browser?

    Your code is very old fashioned (that's the way web pages were written 5 years ago), but it should work.

    Apart from you need:
    name="give_me_a _name"...
    See more | Go to post

    Leave a comment:


  • altonator
    replied to Show and hide on the same click
    Code:
    function displayButton(num) {
        //first, hide all of the other stuff (actually, just hide everything, it's far easier)
        for(id_to_hide in id)//cycle through all of the elements in the 'id' array
            document.getElementById(id_to_hide).style.display = 'none';
        //and now unhide the one that you want to be visible
        document.getElementById(id[num]).style.display="block"; 
    }
    See more | Go to post

    Leave a comment:


  • altonator
    replied to Help needed with arrays
    in PHP
    How about:

    Code:
    <?php
    foreach($key => $value in $array){
        if(!$key % 2)//if it's an even number
            $even_array[] = $value;
        else
            $odd_array[] = $value;
    }
    ?>
    ...
    See more | Go to post

    Leave a comment:


  • altonator
    replied to Insert Mulitple data into the db
    in PHP
    Can you explain this a bit better?

    Do you actually want to save the data in files into a database, or do you want to keep the files in the folder and just store information about them in the database?
    See more | Go to post

    Leave a comment:


  • Hi, please explain your problem a little more.
    See more | Go to post

    Leave a comment:


  • altonator
    replied to Changing z-index and opacity in IE
    Ah, should have said, using IE7.
    See more | Go to post

    Leave a comment:


  • altonator
    started a topic Changing z-index and opacity in IE

    Changing z-index and opacity in IE

    Hello fellow coders. I have a little problem with a script that changes the opacity and z-index of two elements. It's basically 2 elements on top of each other and when you click a link it fades the top element away to reveal the one underneath. So some opacity changing and z-index swapping going on.

    It works fine in Firefox and Safari, but as usual IE insists on screwing it up.

    Now I've used the IE filter:alpha(op acity=xx)...
    See more | Go to post
No activity results to display
Show More
Working...