[wp-hackers] How to use formand link in plugin development?

Chris Jean gaarai at gaarai.com
Mon Oct 11 13:47:54 UTC 2010


Very sorry for not getting back to you sooner.

You can see a solid example of putting together a full admin editor page 
in this plugin <http://chrisjean.com/wp-code-examples.zip>.

The plugin is an early version of a code sample plugin that I plan to 
put on the plugin repository. The section specific to what you want can 
be found in the sample-admin-editor.php file's show_form function 
starting at line 233.

Chris Jean (AKA gaarai&  chrisbliss18)
Coder for http://ithemes.com/
http://gaarai.com/
@chrisjean


On 10/07/2010 08:18 PM, Haulyn Jason wrote:
> Hi, Chris,
>
> Thanks for your reply, my script is for admin panel, just for administrator.
>   Thanks!
>
>
> http://www.vvthumb.com
>
>
> Location:Room 807,QiLuRuanJianDaSha Qilu Software Park
> No. 1 Shunhua Rd High-Tech Development Zone
> Jinan, China 250101
> Website: http://www.haulynjason.net
> Mobile: +86 15854103759
>
>
> Haulyn Jason
>
>
>
>
> ________________________________
> From: Chris Jean<gaarai at gaarai.com>
> To: wp-hackers at lists.automattic.com
> Sent: Thu, October 7, 2010 9:59:34 PM
> Subject: Re: [wp-hackers] How to use formand link in plugin development?
>
> In my humble opinion, you are going about solving this the wrong way around. You
> shouldn't have the form send data directly to your script. Rather, you should
> have a form submission handler in your code that runs inside WordPress.
>
> To give you an example of this, I'd like to know if you have this form on the
> back-end (admin form) or front-end (for a site visitor to fill out).
>
> Chris Jean (AKA gaarai&   chrisbliss18)
> Coder for http://ithemes.com/
> http://gaarai.com/
> @chrisjean
>
>
> On 10/07/2010 08:31 AM, Haulyn Jason wrote:
>    
>> I solve it now, but hard code. Maybe there is a better way?
>>    Thanks!
>>
>>      
>>> I am developing a plugin, I design a form, but I do not know the form action
>>> rule. my form script is slackissspider.php, my logic is
>>> slackissspider-action.php. They are in one folder( the plugin folder). Now I
>>> can not find any reference to write<form action="??">, the related pathdoes not
>>> work.
>>>
>>> Any solutions or reference is very useful, Thanks very much.
>>>
>>> Haulyn Jason
>>>        
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
>
>
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>    


More information about the wp-hackers mailing list