Solved

Retrieve Characters from URL

Posted on 2012-04-12
1
353 Views
Last Modified: 2012-06-22
Hi folks, I need to retrieve from a text field 11 characters beggining for the 32nd character typed into the field, but I'm stomped on how to do it, I need it to be done when the form is submited since the value retrieved must be recorded into the database with the rest of the values in the form.

Any help would be much appreciated.

Cheers!
0
Comment
Question by:Rodrigo Costa
1 Comment
 
LVL 14

Accepted Solution

by:
Scott Madeira earned 500 total points
ID: 37839495
Try:

$substring = substr($inputdata, 32, 11);

You may need to adjust the number a bit (plus or minus 1 to get the exact section you want.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question