PDA

View Full Version : syntax question


footitch
09-13-2002, 02:59 PM
I'm having a breakdown here.

Simple question, looking for a simple solution.

I have a flash form (name address city etc).


Submit button action:

on (press) {
getURL ("process.asp?Name= \"+ Name +\" & \"+ Company +\" & \"+ Street +\" & \"+ City +\" & \"+ State +\"", "", "GET");
}

- the above 'expression' checkbox is not checked
- when I check it off [URL: ':' expected] appears at the end of my string

where am I going wrong? Flash 5 by the way.

Thanks

jimburton
09-13-2002, 03:49 PM
You shouldn't be escaping those quotes. No spaces around the ampersands and you also need to name the variables...try:

on (press) {
getURL ("process.asp?Name= "+ Name +"&Company="+ Company +"&Street="+ Street +"&City="+ City +"&State="+ State");
}

although if you just use

on(press) {
getURL(process.asp","GET");
}

the variables are sent with it...

footitch
09-13-2002, 04:00 PM
almost there...

If I leave the 'expression' box checked off I get 'trailing garbage found

Here is my string:

http://localhost/fusion/accessDB/process.asp?NameValue="+ Name +"&companyValue="+ comapny +"&streetValue=+ street + "&cityValue="+ city"

sending it via POST

footitch
09-13-2002, 04:17 PM
almost there...

If I leave the 'expression' box checked off I get 'trailing garbage found

Here is my string:

http://localhost/fusion/accessDB/process.asp?NameValue="+ Name +"&companyValue="+ comapny +"&streetValue=+ street + "&cityValue="+ city"

sending it via POST

jimburton
09-13-2002, 07:24 PM
switch to expert mode (and stay there!) - with actions window highlighted press Ctrl+Shift+E - then check that your getURL statement matches the one in previous post