unplugged_web Posted September 22, 2010 Share Posted September 22, 2010 I've got a form that I've built with XML, but I wanted to have a hidden field which randomly generated a seven digit number everytime. I've got this <formItem item_type="hidden"> <name>password</name> <value>rand()</value> </formItem> but it's not working :)Thanks for your help Link to comment Share on other sites More sharing options...
boen_robot Posted September 22, 2010 Share Posted September 22, 2010 What's this dialect? Does it provide any way to specify that the parser should generate a random number?If this is your own dialect... XML is just text... it can't do things, and generating a number is doing a thing. The only thing you can do is to designate a reserved something (like the text "rand()") upon which you'll do the random number generation after you read that value. Link to comment Share on other sites More sharing options...
unplugged_web Posted September 29, 2010 Author Share Posted September 29, 2010 What's this dialect? Does it provide any way to specify that the parser should generate a random number?If this is your own dialect... XML is just text... it can't do things, and generating a number is doing a thing. The only thing you can do is to designate a reserved something (like the text "rand()") upon which you'll do the random number generation after you read that value.That sounds like it would work. I'm using it with wapple.net to create a mobile site Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.