Jump to content

lena_k198

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

lena_k198's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Please anybody???
  2. So I am trying to add the background shadow to my wordpress page. It works fine in Firefox but does not in IE. So here is the original code: <?php get_header(); ?> <?php sy_pre_content(); ?> <div id="content"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <!--<h2><?php the_title(); ?></h2> --> <div class="entry"> <?php the_content('<p class="serif">Read the rest of this page ยป</p>'); ?> <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> </div> </div> <?php endwhile; endif; ?> <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) { // Both Comments and Pings are open ?> You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site. <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) { // Only Pings are Open ?> Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site. <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) { // Comments are open, Pings are not ?> You can skip to the end and leave a response. Pinging is currently not allowed. <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) { // Neither Comments, nor Pings are open ?> <!-- Both comments and pings are currently closed. --> <?php } edit_post_link('Edit this entry','','.'); ?> <?php comments_template(); ?> </div><!-- content --> <?php sy_post_content(); ?> <?php get_footer(); ?> my new background is a <div id="shadow"> I put it on the very first and last line of the code. Any idea why IE does not display the shadow? Actually this div is breaking the page in IE. Thanks in advance!
  3. PLEASE help!! i have no idea how to make the items to apper bold in the output: $message = "First Name: $first_name\n\n"; $message .= "Last Name: $last_name\n\n"; $message .= "Company: $company\n\n"; $message .= "Address: $address\n\n"; $message .= "Address 2: $address2\n\n"; $message .= "City: $city\n\n"; $message .= "State: $state\n\n"; $message .= "Zip Code: $zip\n\n"; $message .= "Phone Number: $phone\n\n"; $message .= "Phone (secondary): $phone2\n\n"; $message .= "E-mail: $email\n\n"; $message .= "Comments: $comments\n\n"; $message .= "Insurance Company: $ins_company\n\n"; $message .= "Claim Number: $claim\n\n"; $message .= "Agent: $agent\n\n"; $message .= "Agent Phone: $agent_phone\n\n"; $message .= "Adjuster: $adjuster\n\n"; $message .= "Adjuster phone: $adjuster_phone\n\n"; $message .="Damage to Property:"; foreach ($damage as $damage){ $message.="$damage;";} $message .="Services Required:"; foreach ($services as $services){ $message.="$services;";}
  4. If I want my $message value to be black color and "bold" font what do I do?
  5. where do I set a $table value? sorry i am new with this
  6. I think you did not understand my question. I need to style the table in my email! The output of the submitted form. How will I do that?
  7. Where would I put this code? inside the php section?
  8. Hi, I have a form, where after a submit button the information is coming to my email. I want to put that information in the table, and make the headers such as name, phone, address - bold. Where do I put that code for styling? please help. here is my form php code <?php if (array_key_exists('button',$_POST)) { $post = $_POST; $first_name = $_POST['first_name']; $last_name = $_POST['last_name']; $company = $_POST['company']; $address1 = $_POST['address1']; $address2 = $_POST['address2']; $city = $_POST['city']; $state = $_POST['state']; $zip = $_POST['zip']; $phone = $_POST['phone']; $phone2 = $_POST['phone2']; $email = $_POST['email']; $comments = $_POST['message']; $ins_company = $_POST['ins_company']; $claim = $_POST['claim']; $agent = $_POST['agent']; $agent_phone = $_POST['agent_phone']; $adjuster = $_POST['adjuster']; $adjuster_phone = $_POST['adjuster_phone']; $fire = $_POST['fire']; $storm = $_POST['storm']; $water = $_POST['water']; $pier = $_POST['pier']; $freeze = $_POST['freeze']; $vandalism = $_POST['vandalism']; $Appliances = $_POST['Appliances']; $Architect = $_POST['Architect']; $Asphalt = $_POST['Asphalt']; $Ceiling = $_POST['Ceiling']; $Tile = $_POST['Tile']; $Concrete = $_POST['Concrete']; $Content = $_POST['Content']; $Demolition = $_POST['Demolition']; $Doors = $_POST['Doors']; $Dry = $_POST['Dry']; $Electrical = $_POST['Electrical']; $Excavation = $_POST['Excavation']; $Fencing = $_POST['Fencing']; $Woodwork = $_POST['Woodwork']; $Flooring = $_POST['Flooring']; $Hardware = $_POST['Hardware']; $Heating = $_POST['Heating']; $Insulation = $_POST['Insulation']; $Ironwork = $_POST['Ironwork']; $Masonry = $_POST['Masonry']; $Painting = $_POST['Painting']; $Plaster = $_POST['Plaster']; $Plumbing = $_POST['Plumbing']; $Refinishing = $_POST['Refinishing']; $Remodeling = $_POST['Remodeling']; $Roofing = $_POST['Roofing']; $Carpentry = $_POST['Carpentry']; $Security = $_POST['Security']; $Siding = $_POST['Siding']; $Specialties = $_POST['Specialties']; $Structural = $_POST['Structural']; $Wall = $_POST['Wall']; $autoreply= "Dear $name, Thank you for contacting Duckstein Contracting Inc. We will be responding to you within the next 48 hours. Should you need to speak to someone more promptly, please call us at (412) 331-6257. Sincerely, The Staff at Duckstein Contracting Inc."; $subject="Thank you $first_name!"; mail($email, $subject, $autoreply); $expected = array('first_name','last_name', 'email', 'address', 'phone2', 'state', 'phone', 'city', 'zip','company', 'subject','ins_company','claim','agent','agent_phone','adjuster','adjuster_phone', 'fire', 'storm', 'Appliances', 'Architect', 'Asphalt','Ceiling', 'Tile', 'Concrete', 'Content', 'Demolition', 'Doors', 'Dry', 'Electrical','Excavation','Fencing', 'Woodwork', 'Flooring', 'Hardware', 'Heating', 'Insulation', 'Ironwork', 'Masonry', 'Painting', 'Plaster', 'Plumbing', 'Refinishing', 'Remodeling', 'Roofing', 'Carpentry', 'Security', 'Siding', 'Specialties', 'Structural', 'Wall', 'message'); $required = array('first_name','last_name', 'email', 'phone'); $missing = array(); foreach ($_POST as $key => $value) { $temp = is_array($value) ? $value : trim($value); if (empty($temp) && in_array($key, $required)) { array_push($missing, $key); } elseif (in_array($key, $expected)) { ${$key} = $temp; } } if (!empty($email)) { $checkEmail = '/^[^@]+@[^\s\r\n\'";,@%]+$/'; if (!preg_match($checkEmail, $email)){ array_push($missing, 'email'); } } if (empty($missing)){ $to = '[email protected]';//put your email here $subject = 'Duckstein Contracting Inc. - New Claim'; // you can put what ever subject you want here' $message = "First Name: $first_name\n\n"; $message .= "Last Name: $last_name\n\n"; $message .= "Company: $company\n\n"; $message .= "Address: $address\n\n"; $message .= "Address 2: $address2\n\n"; $message .= "City: $city\n\n"; $message .= "State: $state\n\n"; $message .= "Zip Code: $zip\n\n"; $message .= "Phone Number: $phone\n\n"; $message .= "Phone (secondary): $phone2\n\n"; $message .= "E-mail: $email\n\n"; $message .= "Comments: $comments\n\n"; $message .= "Insurance Company: $ins_company\n\n"; $message .= "Claim Number: $claim\n\n"; $message .= "Agent: $agent\n\n"; $message .= "Agent Phone: $agent_phone\n\n"; $message .= "Adjuster: $adjuster\n\n"; $message .= "Adjuster phone: $adjuster_phone\n\n"; $message .="Damage to Property:\n\n"; foreach ($damage as $damage){ $message.="$damage\n\n";} $message .="Services Required:\n\n"; foreach ($services as $services){ $message.="$services\n\n";} $message = wordwrap($message, 70); $additionalHeaders = "From: $email"; if (!empty($email)) { $additionalHeaders .= "\r\nReply-To: $email"; } $mailSent = mail($to, $subject, $message, $additionalHeaders); if (empty($missing)){ } elseif (empty($missing)){ $mailSent = true; } if ($mailsent = true){ unset($missing); unset($post); } } } ?>
  9. Hello, I need to build simple hmtl website with the rent payment function. Paypal and Creadit Cards allowed. What would be the best program to use in this case? Zen cart maybe? Thank you for your time!
  10. Hi all, I created a form on the web and would like set up an automatic response to be sent to any user who submits the form. The response is generic i.e. the exact same for everyone. The code below is working, I need auto response message. Please help: <?php if (array_key_exists('button',$_POST)) { $post = $_POST; $name = $_POST['name']; $email = $_POST['email']; $comments = $_POST['message']; $expected = array('name', 'email', 'message'); $required = array('name', 'email', 'message'); $missing = array(); foreach ($_POST as $key => $value) { $temp = is_array($value) ? $value : trim($value); if (empty($temp) && in_array($key, $required)) { array_push($missing, $key); } elseif (in_array($key, $expected)) { ${$key} = $temp; } } if (!empty($email)) { $checkEmail = '/^[^@]+@[^\s\r\n\'";,@%]+$/'; if (!preg_match($checkEmail, $email)){ array_push($missing, 'email'); } } if (empty($missing)){ $to = '[email protected] ';//put your email here $subject = $name; // you can put what ever subject you want here $message = "Name: $name\n\n"; $message .= "Comments: $comments"; $message = wordwrap($message, 70); $additionalHeaders = "From: $email"; if (!empty($email)) { $additionalHeaders .= "\r\nReply-To: $email"; } $mailSent = mail($to, $subject, $message, $additionalHeaders); if (empty($missing)){ } elseif (empty($missing)){ $mailSent = true; } if ($mailsent = true){ unset($missing); unset($post); } } } ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.