By using the {x,y} operator in a regular expression, the last thing before it should be repeated any number of times that is in the range of "x to y".
For example, to do what you said, this would be used:
preg_match('/^[a-zA-Z0-9]{0,50}$/', $string);
1) Flash is a very good idea if you're planning to make a website for normal computers, but not for mobile devices - with a few exceptions (like PSP and PlayStation 3, which I believe have some Flash support)
2) Almost no mobile phones (or other mobile devices) have full Flash. Many phones have...
1) Flash is a very good idea if you're planning to make a website for normal computers, but not for mobile devices - with a few exceptions (like PSP and PlayStation 3, which I believe have some Flash support)
2) Almost no mobile phones (or other mobile devices) have full Flash. Many phones have...
The way you're doing it is totally wrong. What you should do instead is to make a server-side script (for instance "sendmail.php") that the users will be directed to when they click the submit button.
For instance, this could be your HTML code:
<form action="sendmail.php" method="POST"...
If I buy something like an upgrade within an iPhone app, and I then remove the program and buy it again, will I have to pay twice, like in the iTunes music store, or just once, like in the App Store?
I have two questions. You only have to answer one of them, but answers to both would be great ;-)
First question: Say I want to make an object dynamically, like this:
<?php $object = (object) array('var1' => 'foo', 'var2' => 'bar'); ?>
or this:
<?php $object = new stdClass(); $object->var1 =...