CDR Tools and syntax

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I am new to php and am learning under fire. I am trying to figure out
what variable the following line is looking for. I know what it is
trying to do, but can't figure out where it is trying to call it from.

<form action="<?php print $this->url() ?>" method=post>

Re: CDR Tools and syntax

Robert Ward wrote:

Quoted text here. Click to load it

hint, if you are using the same PHP file like this you only need:

<form method=post> and it defaults to the current URL.

Somewhere near the bottom of your page insert

<?php php_info(); ?>

look at the url information.

Michael Austin.
Consultant - Available.
Donations welcomed.

Re: CDR Tools and syntax

Quoted text here. Click to load it

This appears to be code inside a class definition. It is saying that it
should execute the url() function of the current object (created from this
class definition) to get the URL to use as the target of your form. Look
through the class definition for a url() function and/or look through the
class defintion of whatever class the current class extended. See the
"extends" clause near the the top of the class definition to see what class,
if any was inherited.

 - Virgil

Site Timeline