Jump to content

play_

Staff Alumni
  • Posts

    717
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by play_

  1. [!--quoteo(post=351337:date=Mar 3 2006, 09:31 AM:name=edwinsweep)--][div class=\'quotetop\']QUOTE(edwinsweep @ Mar 3 2006, 09:31 AM) [snapback]351337[/snapback][/div][div class=\'quotemain\'][!--quotec--]
    i have been using the <form> manners a lot for passing data, its just that the only way i know to send it is to put a button in the browser that they have to click that will perform the submit. is there a manner to do this automaticly so i can just give normal hyperlinks instead of a <form> SUBMIT button all the time???
    thanks in advance!
    [/quote]


    I once asked this same question.
    It's in a thread somewhere....

    Here edwin,
    [a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=82929&hl=\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?...topic=82929&hl=[/a]
  2. Hello Ken.
    I used the code you gave me:
    [code]
    <?php
    if(!isset($_POST['submit']))  $variable = "testing";
    ?>
    <form action="s.php" method="POST">
    <input type="hidden" value="<?php echo $variable ?>" />
    <input type="submit" name="submit" />
    </form>
    [/code]



    and this page, which receives the form:

    [code]
    <?php
    $sq = $_POST['variable'];  <---- line 2
    echo $sq;
    ?>[/code]



    error:
    Notice: Undefined index: variable in c:\program files\web\easy php\www\s.php on line 2




    I have tried making it $_POST, but didn't work
  3. Ok. It's been a month almost since i've done php.
    Anyways, i am trying to pass a variable from a page to another, without using a session (using the $_POST global var)

    I know how to pass values FROM a form, that the user entered in a field. But i wanna pass a value that is not user entered.


    i have this:
    [code]
    <form action="s.php" method="POST">
    <input type="submit" name="submit" />
    </form>

    <?php
    if(isset($_POST['submit'])) {
        $variable = "testing";
    }

    ?>
    [/code]

    which processes to this page:
    [code]
    <?php
    $sq = $_POST['variable'];
    echo $sq;
    ?>[/code]


    and of course i've tried some other things but it won't work.
    is it possible at all? (without Sessions?)

    Ive been thinking that it is not possible because $variable is not a $_POST, and for a variable to be $_POST, it has to be user input. but im not sure.
  4. [!--quoteo(post=342706:date=Feb 4 2006, 02:10 PM:name=askjames01)--][div class=\'quotetop\']QUOTE(askjames01 @ Feb 4 2006, 02:10 PM) [snapback]342706[/snapback][/div][div class=\'quotemain\'][!--quotec--]
    Hey! play?

    what do you think it was
    an egg drop like this --> [a href=\"http://www.eggheads.org/pipermail/eggheads/1999-November/001978.html\" target=\"_blank\"]http://www.eggheads.org/pipermail/eggheads...ber/001978.html[/a]

    or a backdoor?

    Is it hacked passing thru using LINUX, APACHE, FTP or the PHP script?
    and by the way what was the OS for that case?
    And who was your suspects and that time?

    waiting for more details from you [b]play[/b]?
    -/james/
    -and also i remember a few months ago that phpfreaks.com was also hacked, i wonder who was their suspect? Did 'Eric' found out who did that to this website?
    -and how many times did phpfreaks.com was hacked? What do you think?
    [/quote]


    I have no idea how it was done. but the server OS was linux. I know it wasnt through any php coding of mine because at the time i didnt program in php. only css and html
  5. [!--quoteo(post=342614:date=Feb 4 2006, 07:21 AM:name=askjames01)--][div class=\'quotetop\']QUOTE(askjames01 @ Feb 4 2006, 07:21 AM) [snapback]342614[/snapback][/div][div class=\'quotemain\'][!--quotec--]
    [b]ATTENTION:[/b] Geeks, CRacker, Hacker, Gurus... : )

    What are you worse php attacks experiences...
    I just want to hear it from you guys...

    I believed discussing this topic will inform most of us PHP developers,
    so that when we encounter these problem we all now have a little know how, to avoid
    these malicious cases!
    And maybe we can prepare to patch the holes!... in the future!
    Waiting for your grudges and experiences...
    thanks for your advance cooperation...
    -/james
    ------------
    Your good neighborhood
    [/quote]


    Been hacked only once really. I guess it was brute foce. I opened my ftp and saw a random folder with a file in there. went to the link and it said "hacked by (whatever)".

    But i'd say the most common is defacing. and the worst would be a buffer overflow.
  6. [!--quoteo(post=334304:date=Jan 7 2006, 07:34 AM:name=Petemac)--][div class=\'quotetop\']QUOTE(Petemac @ Jan 7 2006, 07:34 AM) 334304[/snapback][/div][div class=\'quotemain\'][!--quotec--]

    Yes, this is what I have heard.

    But I have seen it done...

     

     

    I think it is javascript.

    This site uses it:

    [a href=\"http://www.mad4milk.com\" target=\"_blank\"]www.mad4milk.com[/a]

     

    Highlight some text with your mouse, and the hi-lite color is pink

×
×
  • 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.