Support » Plugins » Paths in templates

  • Resolved Jay1980



    I wrote a template, there is a form which sends data to the same file and beneath is php-script which is doing some calculator stuff.

    Anyway if my template is in my themedirectory and should be able to call itself – what do I have to fill in the action value of the form-element?

    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • whooami


    look at how the current 2 themes that are included in the zip handle form submissions. Look specifically at the search stuff.

    do not use $_server['php-self']

    Thread Starter Jay1980


    Thanks this was a great help and it works out.
    I want to share the solution:
    * Go to the WordPress Source Viewer to default theme in the search.php -file (

    * You can see if you like to want to put an URL into a php function use: “functionname(TEMPLATEPATH./’’);”

    * If you like to put the filename as a Variable like you need it for a filepointer use:
    “$myfilevariable =TEMPLATEPATH.’/’;
    $filepointer = fopen($myfilevariable, “r”);”

    Ok, hope this helps other hobby coders as well – this cost me some time.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Paths in templates’ is closed to new replies.