• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 375
  • Last Modified:

Retrieve Characters from URL

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
Rodrigo Costa
Asked:
Rodrigo Costa
1 Solution
 
Scott MadeiraCommented:
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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now