#46
  1. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: POST does not work


    uytujjkjv,
  2. #47
  3. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    yinyang doesn't work


    the
    <form method="GET" action=" ">

    should refer to yinyang.php instead of cookie.php
  4. #48
  5. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: fix - another solution


    I used this line to make it work:
    Code:
    if(empty($submit))
    .
    I have no idea if this is acceptable coding practice for PHP, or if using
    Code:
    @$submit
    is better. Anybody know?
  6. #49
  7. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: .php4 and .php - the difference


    Its because God hates all web developers ;)

    He just got you confused with one.

    To tell you the truth, I think it has to do with your webserver. Some care and some don't. Blame that on commie open-source.
  8. #50
  9. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    great job


    you guys have a knack for writing good tutorials.....php reminds me so much of the BASIC language.
  10. #51
  11. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    usernames


    Is there any way to get PHP to grab a linux/unix username?
  12. #52
  13. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    hmm, nothing is working:(


    Thanks for the note on .php4 vs .php

    While I did change this, only half the script now seems to work. (Half is better than nothing). I enter "neo" and I get the incorrect message. Everything pops up. When I enter the incorrect name, the correct message comes up that restricts my access.

    How can this be cleared up?



  14. #53
  15. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)
    I figured it out. The problem was that my script had Neo capitalized in one part and minimized in another. Once I changed that, the script worked!!
  16. #54
  17. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    passing variables using buttons


    I to would like to be able to pass variables using only buttons instead of filling out a form and using a submit.
    I need the buttons to pass variables interactively to other frames to update tables. Could you point me in the direction of where some sample code is located at.
    Thanks...
  18. #55
  19. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)
  20. #56
  21. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Form Submission with IE


    It seems that when the browser is Internet Exporer, the submit value pair will NOT be passed if the form is submitted by hitting "Enter" when the focus is on one of the other form variables. The Submit button must be checked for the submit value pair to be passed and, hence, for the "if (!$submit)" conditional to obtain. Thanks, Micro$oft.

    Am I incorrect in this observation?
  22. #57
  23. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: $submit, passing form variables to PHP


    please please please! let me know if you figured out what was wrong. I've run int othe same problem as of late, i think it started when i installed a new version of php... it doesn't work with stuff that i wrote, but it works with others!!
  24. #58
  25. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2002
    Location
    Chennai, Tamilnadu, India
    Posts
    1
    Rep Power
    0

    Re: $submit, passing form variables to PHP


    My PHP installation appears to be working correctly apart from not being able to get form values into PHP. For example $submit is always false, and any form variables I pass into the script are always blank. Can anyone offer a suggestion?

    I am using PWS4 on W2K.
  26. #59
  27. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: hmm, nothing is working :(


    Years after when this message was first posted, I had the same problem. We beginners never learn, eh? Working with v4.2.1 ...

    In my case, I also couldn't get any of the examples to work. After reading the other messages here and tweaking, I found that:

    If you set the "register_globals" setting in the php.ini file to "On" (i.e., register_globals = On) you can get these to work. It says in the file that this is not recommended, however, due to security concerns.

    Instead, you can also use $_GET['var_name'] to set a variable at the beginning of the page, like (for example):

    <%
    $name = $_GET['name'];
    %>

    and then use the $name variable normally in the rest of the page.
  28. #60
  29. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: $submit, passing form variables to PHP


    Try editing your php.ini file.

    Change the "register_globals = Off" to "register_globals = On"

    Restart the webserver and it should work.

    I spent 4 days looking for the answer myself. :)

    -Mike

IMN logo majestic logo threadwatch logo seochat tools logo