User Profile

Collapse

Profile Sidebar

Collapse
RogerInHawaii
RogerInHawaii
Last Activity: Aug 30 '07, 02:05 AM
Joined: Jun 11 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • RogerInHawaii
    replied to Pick up page name in PHP?
    in PHP
    bonski,

    Thanks for the reply.

    That looks like it will return the name of the script file in which the PHP code resides. What I'm looking for is to get access to the name of the web page from within which that script is included.

    That is, let's say I have a page named "MyPage.php " and within that page I do an include "MyPHPFunctions .php". WHat I want to access, from within MyPHPFunctions. php,...
    See more | Go to post

    Leave a comment:


  • RogerInHawaii
    started a topic Pick up page name in PHP?
    in PHP

    Pick up page name in PHP?

    Is there a way, within a PHP script, to pick up the name of the web page that the script is being run on?
    See more | Go to post

  • pbmods,

    Is there a way to do that with just PHP? Can the OnClick call a PHP function and then within the PHP fnction cause a submit to occur?

    Or can the Onclick itself somehow specify a submit?

    - Roger
    See more | Go to post

    Leave a comment:


  • RogerInHawaii
    started a topic Post type Submit when radio button clicked
    in PHP

    Post type Submit when radio button clicked

    I want to effectively do a Post type submit to the very same page when the user clicks on a particular radio button. Of course, I also want it to recognize the click (i.e. checkmarking the radio button) first so the new status of that readio button gets properly Posted.

    How do I do that?
    See more | Go to post

  • Oh, I just figured it out. It uses ampersand to separate multiple parameters, not additional question marks.

    All is fine now. Thanks for your help.

    - Roger
    See more | Go to post

    Leave a comment:


  • ajaxrand ,

    Thanks for trying that out and showing me how to do it.

    In my particular case I am trying to send MULTIPLE parameters at the end of the URL. When I try to do that with something like www.ThePage.com ?a=hello?b=good bye

    and in the receiving page I do $FirstParemeter = $_GET['a'']. What I receive for $FirstParameter is "hello?b=goodby e". It's not splitting the paremeters. Obviously I'm...
    See more | Go to post

    Leave a comment:


  • GET values not available when using META redirect

    Within some PHP code I'm constructing a URL that includes some variables that I want to pass along with the URL. Something like www.MyWebSite.c om/PageTwo.php?Par am1=32. I intend to use this constructed URL within a META tag that will cause it to jump to that page. For example:

    echo '<META http-equiv="refresh" content="0;URL= www.MyWebSite.c om/PageTwo.php?Par am1=32">';

    That works fine. It does...
    See more | Go to post

  • RogerInHawaii
    replied to PHP Mail() function, getting 553 error
    in PHP
    Oh boy. Yet another package to download, install, learn, get confused by, and spend hours getting working right.

    Thanks, :)
    See more | Go to post

    Leave a comment:


  • RogerInHawaii
    started a topic PHP Mail() function, getting 553 error
    in PHP

    PHP Mail() function, getting 553 error

    I'm developing my web site and running it on my local machne during development. In my php.ini file I've set the SMTP to point to the smtp server out on the actual domain that will eventually host the site and set the sendmail_from to be one of my email accounts, already set up, on that domain.

    When I invoke mail() from my PHP code I receive an error message:

    Code:
    SMTP server response: 553 Sorry, that domain isn't
    ...
    See more | Go to post

  • RogerInHawaii
    started a topic Using PHP on home page, index.php not working
    in PHP

    Using PHP on home page, index.php not working

    I've built a website and some of the pages are php pages (e.g. SomePage.php). It all works fine; both the html pages and the php pages come up and work just fine.

    I then made a change to the main index.html file and made it so that it's an index.php file instead, and it has some php code embedded in it, not much different than any of the other php pages on my site.

    But when I try to go to that index.php file, as the...
    See more | Go to post

  • Browser wants to save to the hard drive when I open a .php file.

    I've built a website and some of the pages are php pages (e.g. SomePage.php). It all works fine; both the html pages and the php pages come up and work just fine.

    I then made a change to the main index.html file and made it so that it's an index.php file instead, and it has some php code embedded in it, not much different than any of the other php pages on my site.

    But when I try to go to that index.php file, as the...
    See more | Go to post

  • Fooey. Never mind. I realized my mistake and it has nothing to do with passing array references.
    See more | Go to post

    Leave a comment:


  • RogerInHawaii
    started a topic Syntax Error When Passing Array By Reference
    in PHP

    Syntax Error When Passing Array By Reference

    I would like to pass an array by reference to a function so that I can modify the contents of the array and effectively "return" that array to the caller.

    I tried doing this:

    [code=php]
    function MyFunction(&$My Array)
    {
    MyArray[0] = "First";
    MyArray[2] = "Second";
    }
    [/code]

    [Please use CODE tags when posting source code. ...
    See more | Go to post
No activity results to display
Show More
Working...