[pmwiki-users] Advice on Fox form design

noskule noskule at gmx.net
Sun Nov 2 07:41:53 CST 2008


Graham Archer schrieb:
> Hi
> 
> I copied the code from your working example and put it into my wikisandbox.  
> Both wiki's are using the same pmwiki version pmwiki-2.2.0-beta68   but still I 
> get the  "Error:  no target specified".
> I do have httpvariables in config.php - it's after all the fox includes.
> 
> The only thing I can guess at is that perhaps something is blocking 
> httpvariables from working correctly - since fox forms work o.k. 
> I have not used httpvariables much - only to set cookies for example and this 
> seems to work fine.
> I'm wondering if  there is a way I could check the httpvariables {$get_var} 
> functionality without a fox form? to see if its httpvariables or fox or 
> something else that is causing this.
> 
> This is really frustrating as the functionality you have shown me is exactly 
> what I am looking for :-[
> 
> Thanks for your help,
> 
> Graham


What fox version do you use? I work currently with 2008-07-19, but the 
newest is 2008-09-17. If you use these version I guess something changed 
in fox. May you ask hans (maintainer of fox) what the problem is.

grz nos



> 
> noskule wrote:
>> Graham Archer schrieb:
>>   
>>> Thank you for this advice _ I think this is the right way to go.!
>>>
>>> However I get an error when I try the test form.
>>> Error: no target specified!
>>>
>>> I tried replacing redirect with target in the code but this still gave 
>>> the same error.?
>>>
>>> Thanks
>>>
>>> Graham
>>>     
>>
>> hm, here it works : 
>> http://demo.netstreams.org/cms/index.php/Main/WikiSandbox. ,maybe a 
>> copy/paste error?
>>
>>
>>
>>
>>   
>>> noskule wrote:
>>>     
>>>> Graham Archer schrieb:
>>>>   
>>>>       
>>>>>     
>>>>>         
>>>> it sounds like get vars (Cookbook:HttpVariables) could help you. Try 
>>>> something like this:
>>>>
>>>>
>>>> (:fox Test redirect={$$formname}?gVar={$$gVar}:)
>>>> (:input select formname {*$FullName} "Go to Form 1":)
>>>> (:input select formname {*$FullName} "Go to Form 2":)
>>>> (:input select formname {*$FullName} "Go to Form 3":)
>>>>
>>>> (:input select gVar case1 "case 1":)
>>>> (:input select gVar case2 "case 2":)
>>>> (:input select gVar case3 "case 3":)
>>>>
>>>>
>>>> (:if equal {$?gVar} case1:)case 1: specific fields here
>>>> (:elseif equal {$?gVar} case2:)case 2: specific fields here
>>>> (:elseif equal {$?gVar} case3:)case 3: specific fields here
>>>> (:else:)no case defined
>>>> (:ifend:)
>>>>
>>>> (:input submit post "Go":)
>>>> (:foxend Test:)
>>>>
>>>>
>>>>
>>>> grz nos.
>>>>
>>>>
>>>>
>>>>   
>>>>       
>>>>> In my mind I would like the user to choose an item from above, and 
>>>>> then from that choice the next set of sub-choices are displayed, from 
>>>>> which the user makes a choice again and so on until the correct 
>>>>> outcome can be determined and  a message/link to the correct wikiform 
>>>>> be displayed via the template.
>>>>>
>>>>> I thought about doing this with ptvs - but if there are several people 
>>>>> accessing the page  I think that would result in user b would see part 
>>>>> of a page in use at the time by user a - so I have not taken this route.
>>>>>
>>>>> I would welcome any advice on how best go about this.
>>>>>
>>>>> Thanks in advance
>>>>>
>>>>> Graham
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> pmwiki-users mailing list
>>>>> pmwiki-users at pmichaud.com
>>>>> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>>>>>   
>>>>>     
>>>>>         
>>>> _______________________________________________
>>>> pmwiki-users mailing list
>>>> pmwiki-users at pmichaud.com
>>>> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>>>>   
>>>>       
>>
>>
>> _______________________________________________
>> pmwiki-users mailing list
>> pmwiki-users at pmichaud.com
>> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>>   




More information about the pmwiki-users mailing list