• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 383
  • 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.

Rodrigo Costa
Rodrigo Costa
1 Solution
Scott MadeiraCommented:

$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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

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