Page 1 of 1

vcard

Posted: Mon Feb 18, 2008 6:22 am
by surferchick
HI there
Im looking for some code that i can use that allows people to download a vcard from a html page
Same as here:http://www.hcp.com/content3765.html
Does anyone know how to do this??
Thanks

Re: vcard

Posted: Mon Feb 18, 2008 11:35 am
by Inkyskin
Something like this might be what your looking for: http://www.bitfolge.de/phpvcard-en.html

Re: vcard

Posted: Mon Feb 18, 2008 11:44 am
by Luke
Did you even try to figure this out on your own? It's a pretty simply task if you just do some research. I wouldn't try to do this with a client-side technology. Do it with PHP. Go read up on the format here:

Just to get your brain jump-started, download the vcard that you linked to (http://www.hcp.com/vcard/get.php/id/3765) and open it in a text editor. Use the output as a template to output the correct information.

Code: Select all

<?php
header("Content-type: text/x-vcard");
 
// now output your template here