Get mx record of email addresses hosted on google apps with php then redirect page

I need a little assistance to complete my code. I want to check for the mx record of an email address from a form on my website and if the email address is hosted by google apps then I want the page to redirect to a different page than where other emails redirect to.

I know I can check for the mx record either using dns_get_record, checkdnsrr or getmxrr() but I don't know how to complete the code.

$email = $_POST['email'];<br>

$domain = substr(strrchr($email, "@"), 1);<br>

$mx = dns_get_record('$domain', DNS_MX, );

This is where I get stuck. How would I implement this in php: if $mx includes [url removed, login to view] redirect to [url removed, login to view]

This is not a duplicate question. I am trying to use php to redirect to a new page based on the mx record of the email address. The mx record query should locate [url removed, login to view] and then redirect based on that but if mx record doesnt contain [url removed, login to view] it should redirect to a different page.

More details about this project can be found here

[url removed, login to view]

Evner: HTML, PHP

Se mere: www freelancewriting com articles how to find the highest paying freela nce writing jobs php, php redirect page, php redirect page hotspot, php redirect page day, software write mq4, php redirect page timer, software write chip epson, useful software write book, software write web specs, php redirect page form error, php redirect page load page, free software write user guide, php redirect page error, software write edid, free software write company profile, php landing page google, software write websites idea, software write book images, software write books, php redirect page passing url

Om arbejdsgiveren:
( 9 bedømmelser ) LEKKI, Nigeria

Projekt ID: #13118939

Tildelt til:


Hello Dear Client! My name is Ashot Davtyan I have good experience working with PHP/Codeigniter/MySQL/CentOS Javascript/jQuery/AJAX/JSON Bootstrap/HTML5/CSS3 You can see one of my works on Codeigniter. http://w Flere

$20 USD in 3 dage
(0 bedømmelser)

2 freelancere byder i gennemsnit $75 på dette job


Hi there, how are you doing ? send me ftp details right away I am ready to fix this issue. I am available over chat. Thanks

$100 USD på 1 dag
(108 bedømmelser)

Hi, Delivering the task with quality is my goal. My skills fit perfectly to the kind of task you are looking for. In fact, I had delivered tasks to my satisfied clients that is related to this job. You can contact me Flere

$49 USD in 0 dage
(5 bedømmelser)

Hi, I’m dedicated professional Web and Desktop Programmer & Developer and freelancer only. I have been working with challenge and hope to improve future plan with good network every client. If any client want to get Flere

$25 USD på 1 dag
(2 bedømmelser)
$222 USD in 3 dage
(0 bedømmelser)