• Hi all,

    Not a PHP expert here.

    I’ve been working on a site for a client using a theme that I modified a bit. There is a section that my client can access to change their contact details: address, telephone and email. They are all text fields but in the email field they rightly so want when clicked to open a blank email. I tried naively to put the whole inside the form, it obviously broke the thing.

    Here is what I have for the functions.php and the admin sections.
    FUNCTIONS

    $of_options[] = array("name" => "",
                "desc" => "Email",
                "id" => "contact3_info_email",
                "fold" => "contact_form_det",
                "std" => "[email protected]",
                "type" => "text"
            );

    AND THE ADMIN…

    <li><i class="icon-envelope firm"></i> <?php echo $smof_data['contact3_info_email']; ?></li>

    The bug question, is there an easy way to make this so the user enters an email address and uses it as and email? Taking the address and placing it into the ?

    Thank you all.

  • The topic ‘mailto link in a form field’ is closed to new replies.