Jump to content

Recommended Posts

I want to use, $_GET['@'];

 

 

Or maybe even $_GET['!'];

 

I tryed these and they work fine, they look sexy the browser and unique.  Is it legal to use?

 

Generally, anything other than '?' and '&' are valid, but there's a chance somewhere you'll run into problems using them.. Such as when entering that into a query directly, it'd break the string.

Link to comment
https://forums.phpfreaks.com/topic/186554-is-this-legal/#findComment-985218
Share on other sites

I want to use, $_GET['@'];

 

 

Or maybe even $_GET['!'];

 

I tryed these and they work fine, they look sexy the browser and unique.  Is it legal to use?

 

Generally, anything other than '?' and '&' are valid, but there's a chance somewhere you'll run into problems using them.. Such as when entering that into a query directly, it'd break the string.

 

ISn't that why u just define them as a different variable?

Link to comment
https://forums.phpfreaks.com/topic/186554-is-this-legal/#findComment-985219
Share on other sites

It is legal, well it seems to work with FireFox. As for using them I would suggest against it as most web searches will look down on it. If you do not care about that I would test it in Opera / IE 7-8 / Safari and make sure it does not cause them any dismay.

 

But why use them? Readable names are much more preferred in my opinion.

 

EDIT:

If you are going to define them as a different variable, why not just use that variable name?

Link to comment
https://forums.phpfreaks.com/topic/186554-is-this-legal/#findComment-985221
Share on other sites

Yes, most bots parse the url and strip out useless characters, it may confuse search engines for example. It's really a pointless thing to add, I've already been there and it just didn't matter what it was.

 

site.com?foo=bar&%=baz&!=john

 

Messy, IMO.

Link to comment
https://forums.phpfreaks.com/topic/186554-is-this-legal/#findComment-985223
Share on other sites

I know google will not like that. But if you want to be indexed and SEO friendly why not add another keyword to be searched?

 

In all honesty, there is no benefit to using a special character for the GET data. There are only cons, so you might as well fix it.

Link to comment
https://forums.phpfreaks.com/topic/186554-is-this-legal/#findComment-985227
Share on other sites

They are being hard because they care. Anyone else would just say: "Yeah sure it's valid. Carry on!" Until you later find out your Google PageRank equals 0 and then you will blame them and they'll tell you "you asked if it were valid and we said yes you didn't ask if it had any implications!!"

 

We care therefor we tell you everything wether you like it or not.

Link to comment
https://forums.phpfreaks.com/topic/186554-is-this-legal/#findComment-985440
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.