gagaga Posted November 2, 2008 Posted November 2, 2008 Hi, I was wondering how could I put changing variables in a url? heres my code: $x = "hi" ShellExecute("https://www.google.com/=www&say=$x") ; just example url I tried to search answer but couldnt find.. any help?
Kip Posted November 2, 2008 Posted November 2, 2008 ShellExecute("https://www.google.com/=www&say="& $x) MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API.
TehWhale Posted November 2, 2008 Posted November 2, 2008 $x = "high" ShellExecute("https://www.google.com/=www&say=" & $x)
furrycow Posted November 2, 2008 Posted November 2, 2008 Hi, I was wondering how could I put changing variables in a url?heres my code:$x = "hi"ShellExecute("https://www.google.com/=www&say=$x") ; just example urlI tried to search answer but couldnt find.. any help? I dont get it...that looks fine??I mean at the moment, $x is always going to be "hi", is it that value you want to change..and if so, what are other results do you want $x to change it to, or where are you getting the other results for $x from?? Instant Lockerz Invite - www.instantlockerzinvite.co.uk
Kip Posted November 2, 2008 Posted November 2, 2008 I dont get it...that looks fine??No it doesn't MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API.
furrycow Posted November 2, 2008 Posted November 2, 2008 No it doesn'tok, i actually see the typo in it, lol, i was a fool for not looking closer...i have brought shame on my family name Instant Lockerz Invite - www.instantlockerzinvite.co.uk
TehWhale Posted November 2, 2008 Posted November 2, 2008 To use variables and a literal string you must use & to conjoin them. For example: $Variable1 = "cal" $Variable2 = "wmplayer" $Variable3 = "mspaint" Shellexecute($variable1 & "c") ShellExecute("mspaint " & $Variable2) You cannot use: "String $Variable" as it will take $Variable as a literal string and write that.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now