url_id; } echo mysql_error(); $body=" Click here for details:

http://www.womens-health.co.uk/f/admin/activate_link/?url_id=$url_id "; $body_plain=strip_tags($body); // to address, to name, from address, from name, subject, text message, html message smail("ab@ataramedia.com", "ab", $email, $name, $email, "Link exchange request on Womens Health", $content_plain,$content); //smail("e@nopuente.com", "Edmund", $email, $name, $email, "Link exchange request on Womens Health", $body_plain,$body); // smail("checkurl@womens-health.co.uk", "Pregnancy-Info CheckURL", $email, $name, "Link exchange request on Pregnany-Info", $content_plain,$content); } } // first page if (empty($action)) { $query="select * from linkcategory order by category_name"; $result = mysql_query($query); echo mysql_error(); $arr_categ = array(); while($record = mysql_fetch_object($result)) { $arr_categ[$record->category_id] = $record->category_name; } mysql_free_result($result); $output =<<Add Your Site to Our Directory

At Womens-Health.co.uk, we are happy to add your site to our directory. We believe that this is an excellent way to offer our visitors the best access to valuable information on women's health topics.




There are two steps in the linking process. First, you will place one of our recommended links on your site. Upon approval, we will add your site to our link page under the category that you choose below. Please note that the link we provide you with may direct your visitors to another website owned by Hearthstone Communication which we feel is more suited to your visitors. Please do not change the link code that is given in anyway.
Select category under which you want your link to appear on our site: OUTPUT; $output .= "\n"; $output .=<<



OUTPUT; } // second page else if ($action=="show_code") { // default values $g_url1 = "http://www.womens-health.co.uk"; $g_title1 = "womens-health.co.uk"; $g_descr1 = "The ultimate resource for parents-to-be."; mysql_query("USE recip_links"); $query=" SELECT sl.id as sl_id, l.link as url, l.title, l.descr, img100, img125, img468 FROM site as s right join site_link as sl on sl.siteid=s.id and active=1 right join link as l on l.id=sl.linkid and status=1 WHERE s.sitename='Womens-Health' order by last_linked limit 1"; $result=mysql_query($query); if ($record=mysql_fetch_assoc($result)) { $sl_id = $record[sl_id]; $linkurl = $record[url]; $g_title = $record[title]; $g_descr = $record[descr]; $g_img1="\"$g_title\""; $g_img2="\"$g_title\""; $g_img3="\"$g_title\""; } mysql_free_result($result); mysql_query("USE womens_health"); $output .=<< function change_code(i) { switch (i) { case 1: document.form2.text_code.value='$g_title
$g_descr'; break; case 2: document.form2.text_code.value='$g_img1'; break; case 3: document.form2.text_code.value='$g_img2'; break; case 4: document.form2.text_code.value='$g_img3'; break; } }


Please, Select one of the links below:
(You will see the applicable HTML code for the link at the bottom of this page)

Link without image
$g_title
$g_descr

Link with 100x100 size image
$g_img1


Link with 125x125 size image
$g_img2


Link with 468x60 size image
$g_img3




Copy and paste the code below to your site:
OUTPUT; } // third page else if ($action=="contact_form" || ($action=="submit" && !empty($error))) { if (!empty($error)) { $output .= "
$error
"; } $output .=<<

Provide us with your link details:
Your Name:
Your E-mail:
URL of your site:
(must start with "http://")
Title:
Description:
URL of page with link to us:
(must start with "http://")
  (all fields are required)
Please note: Do not submit this form until you have posted one of our prescribed links on your site
OUTPUT; } // forth page else if ($action=="submit") { $output .=<<

Thank you very much for your participation!
We will contact you shortly.

OUTPUT; } ?>