Questions tagged [urlvariables]

64 questions
1
vote
3 answers

how to pass variables in url with an ID section using PHP?

I can do this: home But when I have a link with an Id, I can't pass variables: home <--!this doesn't work of course --> Thanks a lot!
diego
  • 77
  • 1
  • 3
  • 12
1
vote
2 answers

as3 parse a string into URLVariables

for instance if a string is data = "success=0" or data = "success=1®istration=20"; how to parse all variables into URLVariables class object.
user689751
0
votes
3 answers

Filter everything but number

I have a get url input which I need to pass it into databse, but before doing that since I know that the user id would always be an integer number, I wanted to filter out everything but number in php. The follwoing code is what I came up with, does…
Sokhrat Sikar
  • 175
  • 3
  • 4
  • 14
0
votes
4 answers

Append form value to URL that already has variables in it

I've got a page showing the results of a MYSQL query written in PHP. The URL has the variables that the user submitted on the previous page as: www.mydomain.com/search/?var1=xx&var2=xx&var3=xx When the user is on the results page they need to be…
Max
  • 43
  • 2
  • 9
0
votes
1 answer

Accessing URL variables in custom WordPress blocks with URL rewriting and permalinks

Preface: I know this is an extremely common question. I've read about two dozen of these and tried all the proposed solutions, but just can't get it to work on my site. There are no other WordPress devs in my shop and I need more eyes on the code. I…
Jesse Kuzy
  • 11
  • 2
0
votes
0 answers

Woocomerce Change/Edit Endoint URL

I am working on the "My account" page on wordpress (woocommerce). I need a hook to edit the URL enpoint for "Account variables". I know I can change this variables in Woocommerce->Settings->the Advance, however, I can not edit the new variables for…
0
votes
1 answer

Javascript | Link/Bookmarklet to remove variables in url

I found this and was able to do what I initially wanted. Javascript | Link/Bookmarklet to replace current window location javascript:(function(){var loc=location.href;loc=loc.replace('gp/product','dp'); location.replace(loc)})() Which was to change…
0
votes
3 answers

Is there any specific way Django URL variables?

My Code is below, if I pass posts data via context, than i get "Reverse for 'user_profil' not found. 'user_profil' is not a valid view function or pattern name." without any "context", i get no error. I have read lots of the comments but no one…
0
votes
4 answers

jQuery: Variable from URL, with ÆØÅ and what not

I use a script to get a variable from the URL and decode it - "userName" to be preciese. However the script only works with English characters, and not Danish or other Latin characters. How can I get pass this? If the name is "Jørgen-Vælle…
curly_brackets
  • 5,491
  • 15
  • 58
  • 102
0
votes
1 answer

how to pass special character (e.g. %) through url for create new event in google calendar

I am creating a new event in google calendar by the following URL structure. https://calendar.google.com/calendar/r/eventedit? text=discount for Asgardian& dates=20200327T032400Z/20200327T032400Z& details=Thor will be there to receive…
0
votes
0 answers

how can i pass url variables not in english

i have some code that sends me to a url website and the url has a username and password variables in it. when the username and password are in english it works well and it signs the user in. (for example…
Itay S
  • 73
  • 7
0
votes
3 answers

Using a get variable from URL to do a MYSQL Query

I am using a post variable and i am attempting to use a get variable from the url to login a user. Here is the process: Users get their own url, i.e kayden.domain.com and when they create their own account they have their username and pass When…
AAA
  • 3,120
  • 11
  • 53
  • 71
0
votes
0 answers

How can I prevent search engines from returning a URL with variables?

We have a website that contains encrypted user information in the URL. For example: www.mysite.com/default.aspx?xs=ew0KICA Our client reported Bing.com is coming up with that full URL (including the encrypted user information) and is allowing data…
boilers222
  • 1,901
  • 7
  • 33
  • 71
0
votes
2 answers

Getting last part of URL into variable with Url Rewriter

I'm using Url Rewriter to create user-friendly URLs in my web app and have the following rule set up How do I replace $1 so that it is the last part of the URL? So that the…
m.edmondson
  • 30,382
  • 27
  • 123
  • 206
0
votes
1 answer

URL variables and PHP redirects, can they be cached?

Two questions rolled into one. Can browsers in general cache a URL (js script) if it's requested with URL variables? E.g. www.thing.com/?l=lib&s=thing.js Can browsers cache a file if it is a php redirect? E.g. www.thing.com/script.js (called, is a…
Matt Cowley
  • 2,164
  • 2
  • 18
  • 29