I have tried with permalink and custom templete but result is same...here is the code...
<?php
/*
Plugin Name:test
*/
//creating the form class//
if (!class_exists(
{
class Form
{
//constructor/
function Form()
{
add_shortcode(
}
function process()
{
echo "result is";
print $_GET[name];
print $_GET[age];
}
}
$Form=new Form();
//register the function//
if (isset($Form)
{
register_activation
}
}
I have made the plugin to print the $_GET variables from url...The shortcode is [process].the page permalink is http://localhost/
--- In phpexperts@yahoogro
>
> For action use *permalink*(
> for action.
>
> pls check in codex that the function name is correct.
>
>
> check the $_POST or $_GET or $_REQUEST on that action page outside the loop.
>
> the action page should be custom theme file or u need to add php code in
> page and need to install any plugin who allows to executed in wp pages(page
> contents that is inserted from admin)
>
>
> let's check again and pls reply is that working or not.
>
> can u show here the two files(or just as sample) that u are using.
>
> thanks
> ............
> Sabuj Kumar Kundu
> About Me: http://blog.
> http:/blog.manchuma
> http://forum.
> http://gallery.
> http://mkabya.
>
>
>
> On Mon, May 25, 2009 at 4:08 PM, Md.asadullah-
> galib_setu@.
>
> >
> >
> > thanks sabuj vai....bt my problems in passing variables to pages...not
> > running php code in pages or post..if I want to pass variables by form,then
> > wat will be action field of the form...?
> > page A= localhost/wp/
> > <form action="localhost/
> > bt its not working in GET/POST methods...result is:there is no such post...
> >
> > please help me.......
> >
> >
> > --- In phpexperts@yahoogro
> > Kundu <manchumahara@
> > >
> > > 1. There are some plugin for wordpress which let's u execute php code in
> > > post or page's content.
> > > 2. You can set custom theme file for any page. Like create a page like
> > > single.php and give any other name that is not used as any standard theme
> > > file. Now put these lines at the top of the file
> > >
> > > <?php
> > > /*
> > > Template Name: any_name_here
> > > */
> > > ?>
> > > While creating ur required page select custom template from right side
> > and
> > > choose any_name_here template.
> > >
> > >
> > > now u can do any thing with this file/page. U can put custom code like
> > any
> > > php file .
> > > Note: if u write any thing in that page while creating from admin then
> > you
> > > can get it in *LOOP. and write ur custom code outside the loop any where
> > in
> > > that file.
> > >
> > > thanks
> > > *...........
> > > Sabuj Kumar Kundu
> > > About Me: http://blog.
> > > http:/blog.manchuma
> > > http://forum.
> > > http://gallery.
> > > http://mkabya.
> > >
> > >
> > >
> > > On Sun, May 24, 2009 at 6:47 PM, Md.asadullah-
> > > galib_setu@> wrote:
> > >
> > > >
> > > >
> > > > dear experts,I am facing some problems with WP.I have 2 pages A and B.
> > > > A contains a form.how can I pass the form variables from page A to page
> > B
> > > > or other posts?let the urls of pages are:
> > > >
> > > > page A=localhost/
> > > > page B=localhost/
> > > >
> > > > simply the ques is how can I pass variables between two posts or pages
> > in
> > > > wordpress...
> > > > waiting for repy....thanks in advance.....
> > > >
> > > >
> > > >
> > >
> >
> >
> >
>
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch format to Traditional
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
No comments:
Post a Comment