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

Đang Thực Hiện

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]

Kỹ năng: HTML, PHP

Xem thêm: 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, software write protection, php script redirect page, php redirect login message previous page, free software write book, software write book

Mã Dự Án: #13118939

Đã trao cho:

codetestdotinfo

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 Thêm

$20 USD trong 3 ngày
(0 Đánh Giá)
0.0

3 freelancer đang chào giá trung bình $124 cho công việc này

mvaqasuddin

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 trong 1 ngày
(108 Đánh Giá)
6.0
cracken

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 Thêm

$49 USD trong 0 ngày
(5 Đánh Giá)
3.0
Mahmud5

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 Thêm

$25 USD trong 1 ngày
(2 Đánh Giá)
2.4
$222 USD trong 3 ngày
(0 Đánh Giá)
0.0