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,...
User Profile
Collapse
-
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? -
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?
- RogerLeave a comment:
-
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? -
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.
- RogerLeave 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...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... -
Oh boy. Yet another package to download, install, learn, get confused by, and spend hours getting working right.
Thanks, :)Leave a comment:
-
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
-
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... -
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... -
Fooey. Never mind. I realized my mistake and it has nothing to do with passing array references.Leave a comment:
-
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. ...
No activity results to display
Show More
Leave a comment: