Link to home
Create AccountLog in
Avatar of Coast Line
Coast LineFlag for Canada

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
SOLUTION
Avatar of Loganathan Natarajan
Loganathan Natarajan
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
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.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of Coast Line

ASKER

Thanks Guys