<M/> 170

Saadi.. is there a way in not using JQUERY? just php only?? and here is my code:

<?php
       $name = $_POST['name'];
       $email = $_POST['email'];
       $comment = $_POST['comment'];
            $from = 'From: My Contact Form';
            $to = 'me@email.com';
       $subject = 'Hi?';

                $body = "From: $name\n E-Mail: $email\n Comment:\n $comment";

   if ($_POST['submit']) {
             if (mail ($to, $subject, $body, $from)) {
                    echo '<p>Message Sent Successfully!</p>';
                        } else {
                    echo '<p>Try again, please?</p>';
                        }
                }
?>

where would I place the code?

<M/> 170

Thanks squidge, but can you write a snippet of code so I can see what the code looks like on each one... I'm still new to php, so it's kinda hard to adapt to.

saadi, I am still trying out your solution... I will notify you when I get it sorted out:)

<M/> 170

Hi guys!
I have worked on some php code on making my contact form work...
I stumbled on a few questions:

  • I can't figure out why the contact form doesn't send me a notification email telling me someone submitted a form.

  • I don't know how to send a user a message through their email saying that we got their form submitted.

  • I can't figure out how to put a message in the same window saying "Thanks for Submitting Form" without putting this on another page.

  • I can't figure out how to make fields required.

  • I can't figure out how to allow user's to only send form once.

  • I can't figure out a solution in putting ways in checking for real emails, so I don't get spammed by users sending fake emails (the email form has to have the @ symbol in order for it to work).

I know I am asking a lot of ridiculous questions... but I really need someone to help me here... I will paste my code here if you need it...

Please update me if you guys don't get my questions

Please respond a.s.a.p!
Thanks!

<M/> 170

I've seen some premium plugin's for wp for that would fit your solution, but i've got to look into it for you... I will notify you if I find them..

<M/> 170

It's just some hacker on another computer... don't worry about it...
Normally major companies would customize their emails and they display their links :)

<M/> 170

I know I'm gonna need it, but I don't want to write too much of jqeury... So you have any possible solutions... source codes? sites? tutorials? anything?

<M/> 170

Due to the popularity of owning a domain, its becoming impossible to find a domain for your uses... so its rare to find anything 2 lettered...

<M/> 170

thanks for that info, but I don't want a plugin... I want to do it purely of html5 and css3... and very little JQuery :)

<M/> 170

I was looking for an image slider, not that kind sorry..

<M/> 170

Can anyone write a simple code for a slider that fades???? i want to do one just like the one on mbusa.com.... can anyone assist???

Thanks in advanced!

<M/> 170

Sorry for not updating you, I forgot to come back... but yes it worked but I'm planning on taking things a step further! so thanks for your assistance :)

<M/> 170

Thanks for the help, I will try it out, and I will update you :)

<M/> 170

Thank you for that information, the thing is that I want to use less Javascript/JQuery and more of the html5 and css3 features... but I will keep that in mind :)
Hope you got to work on time :)

Thanks!

I will update you if it worked or not :)

<M/> 170

Sure, but remember its only css and html

Here is html

<div id="stylized" class="myform">
<form id="form" name="form" method="post" action="index.html">
<h1>Contact Us</h1>

<label>Name*</label>
<input type="text" name="name" id="name" />

<label> Email*</label>
<input type="text" name="email" id="email" />

<label>Comments
</label>
<input type="text" textarea name="comment" id="comment"></textarea>

<button type="submit">Sign-up</button>
<div class="spacer"></div>

</form>
</div>

Here is css

#stylized {
    position:absolute;
    z-index:1;
    left: 22px;
    top: 8px;
}

body{
font-family:"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
}
p, h1, form, button{border:0; margin:0; padding:0;}
.spacer{clear:both; height:1px;}
.myform{
margin:0 auto;
width:330px;
padding:14px;
height: 200px;
}
#stylized{
border:solid 1px #5c6063;
background: #EAEAEA;
}
#stylized h1 {
font-size:12px;
margin-bottom:8px;
}
#stylized label{
display:block;
text-align:left;
width:140px;
float:left;
left: 10px;
}
#stylized .small{
color:#666666;
display:block;
font-size:11px;
font-weight:normal;
text-align:right;
width:140px;
}
#stylized input{
float:left;
font-size:12px;
padding:4px 2px;
border:solid 1px #aacfe4;
width:200px;
margin:2px 0 20px -65px;
height: 20px;
}
#stylized button{
clear:both;
margin-left:150px;
width:125px;
height:31px;
background:#666666  no-repeat;
text-align:center;
line-height:31px;
color:#FFFFFF;
font-size:11px;
font-weight:bold;
}

.disclaimer {
    color: #CCC;
}
.disclaimer_dark {
    color: #666;
}

I'm not sure if I did everything properly, but all I'm looking forward to is a finished and active form, I know you can help :)

<M/> 170

Does anyone know how to make the slider on the Mercedes benz USA site? http://www.mbusa.com/mercedes/index?utm_expid=62343809-0

Can anyone show me a tutorial or anything on how to make that slider?

<M/> 170

I am building a contact form, and I made it out of html and css, but I can't apply php to it in order to make it functional... I wanted it to have the abilities to notify me if someone submits form, the ability to only apply valid information, and etc.

I will place my html and css code if needed... i just need help applying the php part!

<M/> 170

Welcome :)

<M/> 170

Use Wordpress, other's would desire you to know coding...

<M/> 170

USE WORDPRESS!, most recommended tool!

<M/> 170

Have a template set up (easy to make), that's an easy way to go!

<M/> 170

I know there are a few tutorials on the web for solving this, I can't give my opinion because I might mis-guide you... but I recommend using a plug-in if you want to customize. Remember, in Wordpress you want less coding so do your best to stay away from the editor. :)
Tell me if this helped

<M/> 170

I think this link may help :)
Click Here

<M/> 170

Well, i'm not that successful... do you mind giving me an example? I am a newbie coder, so my skills are weak compared to yours.

<M/> 170

Ok, lemme try that!

<M/> 170

Honestly, I think that you should get advice from someone who has taken those courses... but if you want my advice i'd take what tools they use and learn from there (but my advice is an option)... take whatever option you'd like... this is your choice and I hope you the best of luck in becoming a pro app developer :)!

<M/> 170

Well... by my opinion, it's better to stick with both. Think about it this way, if your good on both you can make your app even popular if it is on both iOS and Android... That's my opinion, I can give you more advice, but if you want to stick in a budget do iOS first, then android.

But this is totally your choice, so I wish you the best of luck on which path you take :)

If you have more questions, ask or research further!:)

<M/> 170

So I stumbled upon this question and I wanted to figure out how to find the mean, median, mode, highest number, lowest number, how many evens, and how many odds are in each row... I honestly can't figure this out...
I want it to display next to the table I have created, which is the last table... and I want to connect the new colums to the original table... do you see what I mean?

Here is my code:

<p>
  <?php
$x=0;
$min=900;
$max=2000;
// initialize array of random values
$random_array = array();
// initialize temporary array for sorting
$temp_array = array();
// start html table for random values
echo "<table border=\"1\">";
// create $random_array with random numbers, display html table rows and
// store each value in onedimensional $temp_array for sorting
for($row=1;$row<=10; $row++){
    echo "<tr>\n";
    for($col=1;$col<=10; $col++) {
        $x=rand($min,$max);
        $random_array[$row][$col] = $x;
        echo"<td>$x</td>\n"; 
        // add value to the $temp_array
        $temp_array[] = $x;
    }
    echo "</tr>";
}
// end the html table
echo "</table>";
?>
</p>
<p>
  <?php
// sort the $temp_array (sort works on onedimensional arrays)
sort($temp_array);
// start a table for sorted values
echo "<table border=\"1\">";
// initialize counter that will be the $temp_array's key
$key = 0;
// display html table rows of sorted values
for($row=1;$row<=10; $row++){
    echo "<tr>\n";
    for($col=1;$col<=10; $col++) {
        echo"<td>{$temp_array[$key]}</td>\n";
        // increase the key
        $key++; 
    }
    echo "</tr>";
}
// end the html table of sorted values
echo "</table>";
?>
</p>
<p>
  <?php
// sort the $temp_array (sort works on onedimensional arrays)
rsort($temp_array);
// ...
<M/> 170

Since your far from a guru, might as well call you the Da Vinci of the web :) or the broj1 of the web :)

I think everything you post is a solution so I will definitly triple thumbs up!

<M/> 170

Wow... I just praise you... you are a complete genius... do you mind if I call you a guru????

Thank you for helping, you don't realize how much you've helped me!

Thanks and best regards!
Sedique

<M/> 170

I am trying to use a modulo to make all even numbers replaced with a star and all odds replaced with a percent sign... this is my code:

<?php
$x=0;
$min=900;
$max=2000;
// initialize array of random values
$random_array = array();
// initialize temporary array for sorting
$temp_array = array();
// start html table for random values
echo "<table border=\"1\">";
// create $random_array with random numbers, display html table rows and
// store each value in onedimensional $temp_array for sorting
for($row=1;$row<=20; $row++){
    echo "<tr>\n";
    for($col=1;$col<=20; $col++) {
        $x=rand($min,$max);
        $random_array[$row][$col] = $x;
        echo"<td>$x</td>\n"; 
        // add value to the $temp_array
        $temp_array[] = $x;
    }
    echo "</tr>";
}
// end the html table
echo "</table>";

// sort the $temp_array (sort works on onedimensional arrays)
sort($temp_array);
// start a table for sorted values
echo "<table border=\"1\">";
// initialize counter that will be the $temp_array's key
$key = 0;
// display html table rows of sorted values
for($row=1;$row<=20; $row++){
    echo "<tr>\n";
    for($col=1;$col<=20; $col++) {
        echo"<td>{$temp_array[$key]}</td>\n";
        // increase the key
        $key++; 
    }
    echo "</tr>";
}
// end the html table of sorted values
echo "</table>";

// sort the $temp_array (sort works on onedimensional arrays)
rsort($temp_array);
// start a table for sorted values
echo "<table border=\"1\">";
// initialize counter that will be the $temp_array's key
$key = 0;
// display html table rows of sorted values
for($row=1;$row<=20; $row++){
    echo "<tr>\n";
    for($col=1;$col<=20; $col++) {
        echo"<td>{$temp_array[$key]}</td>\n";
        // increase the key
        $key++; 
    }
    echo "</tr>";
}
// end the html table of sorted values
echo "</table>";
?>

I need to ...