Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How do I generate URL with multiple variables from input fields?

New Here ,
Sep 12, 2013 Sep 12, 2013

I'm creating an ad with four input text fields labels fname, lname, city and prov, and I wanted to know how to generate URLs based on information entered into the fields. The text fields default to display "First Name," "Last Name," "City" and "State," respectively, but if a user does not enter information in those fields, I want the URL to behave as if those were empty, if that makes sense. The text fields are in a movie clip called "input_text" and the button is labeled "send". If any of you can provide insight, I would be greatly appreciative. Thank you.

TOPICS
ActionScript
785
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Sep 12, 2013 Sep 12, 2013

1. use if-statements to see if the text properties of your textfields meets your requirements for creating that url.

2. you can use the flash string methods and properties to create your url.

p.s.  the plus sign + can be used to concatenate strings.

Translate
Community Expert ,
Sep 12, 2013 Sep 12, 2013

1. use if-statements to see if the text properties of your textfields meets your requirements for creating that url.

2. you can use the flash string methods and properties to create your url.

p.s.  the plus sign + can be used to concatenate strings.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 12, 2013 Sep 12, 2013

Thank you for your helpful response!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 12, 2013 Sep 12, 2013
LATEST

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines