Coast Line
asked on
Php Code issues
I am a Noob in PHP and i am having issues with the following line:
http://www.mywebsite.com/?type=confirm&email=nam%40company.com
%40 is coming instead of @, i am unable to confirm the email Address what should i do, guide me please
http://www.mywebsite.com/?type=confirm&email=nam%40company.com
%40 is coming instead of @, i am unable to confirm the email Address what should i do, guide me please
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Try to use $_POST rather than $_get as it is more secure as well...
<form method = "post" acton = "postdata.php"
That's because Php is interpreting the value of 'email' as a string so the %40 is part of that string.
Th cleanest way to submit that information is via ajax. You can send parameters like 'sam@somewhere.com' and you can grab that value in the php script. Let me know if you want an ajax example to send it and deal with the result.
Th cleanest way to submit that information is via ajax. You can send parameters like 'sam@somewhere.com' and you can grab that value in the php script. Let me know if you want an ajax example to send it and deal with the result.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Thanks Guys