Skip to main content
Participant
September 12, 2013
Answered

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

  • September 12, 2013
  • 1 reply
  • 832 views

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.

This topic has been closed for replies.
Correct answer kglad

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.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
September 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.

Aaron237Author
Participant
September 12, 2013

Thank you for your helpful response!

kglad
Community Expert
Community Expert
September 12, 2013

you're welcome.