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

Matthew Weier O'Phinney matthew at zend.com
Tue Aug 26 18:03:38 UTC 2008

-- 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/

More information about the Dojo-interest mailing list