[Dojo-interest] I can't get any $_POST data from adijit validation box

Andy Daykin adogg31 at msn.com
Tue Aug 26 18:24:08 UTC 2008


Yeah it's a post. I tried changing the code a bit now I am using a bind 
event, but I still couldn't get that to work, here is a link to my full 
code: http://pastebin.com/m7949d70f

thanks,

-Andy Daykin
www.andydaykin.com

--------------------------------------------------
From: "Matthew Weier O'Phinney" <matthew at zend.com>
Sent: Tuesday, August 26, 2008 1:03 PM
To: <dojo-interest at dojotoolkit.org>
Subject: Re: [Dojo-interest] I can't get any $_POST data from adijitvalidationbox

> -- Andy Daykin <adogg31 at msn.com> wrote
> (on Tuesday, 26 August 2008, 09:32 AM -0500):
>> Hello, I can't get any values from $_POST when I try and pass the value 
>> of a
>> dijit validation box. My code on my first page that gathers the data is:
>>
>> echo "<tr><td>Link: </td><td>&nbsp;</td><td><input class='long' 
>> value='".$row
>> [5]."' dojoType='dijit.form.ValidationTextBox' 
>> regExpGen='dojox.regexp.url'
>> trim='true' required='false' constraints={scheme:true} 
>> invalidMessage='Invalid
>> URL. Be sure to include the scheme, http://...' type='text' name='link' 
>> /></td>
>> </tr>";
>>
>> The code on the second page is:
>>
>> $link = $_POST['link'];
>> echo $link; // returns nothing
>>
>> I tried doing this with just a regular text input, no dojo and it worked
>> perfectly. Has anyone else experienced problems trying to get post data 
>> from a
>> dijit validation text box?
>
> No problems here. Are you sure you specified 'post' as the form method
> in your form tag?
>
> -- 
> Matthew Weier O'Phinney
> Software Architect       | matthew at zend.com
> Zend Framework           | http://framework.zend.com/
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://dojotoolkit.org/docs/book
> Forums: http://dojotoolkit.org/forum
> Dojo-interest at dojotoolkit.org
> http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest
> 


More information about the Dojo-interest mailing list