How can I have a switch command send to a ftp site?
Here is what I have. Instead of $to_email is there one for URL? Thanks everyone.
Erich

switch($attn1) {
case 'employees':
$to_email = "ftp://myftpsite@rgl-e.com";
break;

Member Avatar for Rhyan

I cannot really understand what you actually want to do. Do you want to e-mail a link or redirect the browser to an ftp location?

In case you need to redirect your users to an ftp location, you can use this instead

switch($attn1) {
case 'employees':
header('Location: ftp://myftpsite@rgl-e.com');
break;

Note that this code should be inserted BEFORE <html> opening tag on your page.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.