PHP form help

Hello,

I want help for my php form, i have made form and i have field where users enter their 11 digits number and in post data i want to skip first number…

For example if users are typing 01001234567 and clicking in submit button and i get same data from field i want to get 10 digits and want to skip first 0 digit is it possible?

Recipient Number e.g. 01001234567

$phone = $_POST[‘phone’]; there is need to skip first 0 digit.

This will do what you need, but…
[php]$phone = substr($_POST[‘phone’], 1)[/php]

For the love of all things sacred, please don’t put data directly into your database without checking it first!!

see here for more details.

Red :wink:

Sponsor our Newsletter | Privacy Policy | Terms of Service