I cant seem to get it working I am not receiving any messages and it does not appear to be sending or anything. here is a link to the site in progress. drved.com/alpha
- Has been a member for 2-3 years
- Exclusive Author
- Sold between 100 and 1 000 dollars
- Bought between 1 and 9 items
- United States
- Has been a member for 2-3 years
- Exclusive Author
- Sold between 100 and 1 000 dollars
- Bought between 1 and 9 items
- United States
ok awesome idangerous i will pop this in and try it next time I am at work. I will let you know how it goes 
Thanks
- Has been a member for 2-3 years
- Exclusive Author
- Sold between 100 and 1 000 dollars
- Bought between 1 and 9 items
- United States
<form method="post" action="./js/send.php">
<ul>
<li><input name="name" class="name" id="name" value="" type="text" placeholder="John Doe" /></li>
<li><input name="email" class="email" id="email" value="" type="text" placeholder="you@fantastic.com" /></li>
<!--<li><input onfocus="this.value=''" class="company" type="text" id="company" name="company" value="Company" /></li>
<li><input onfocus="this.value=''" class="address" type="text" id="address1" name="address1" value="Address" /></li>
<li><input onfocus="this.value=''" class="address2" type="text" id="address2" name="address2" value="Address Line 2" /></li>
<li><input onfocus="this.value=''" class="phone" type="text" id="phone" name="phone" value="Phone Number" /></li>-->
<li><textarea name="message" class="message" id="message" rows="30" cols="30" placeholder="What's can we help you with today?"></textarea></li>
<li><input class="button" value="Send your message" type="submit" /></li>
</ul>
</form>
<span id="stamp"></span>
this is my html.
the span id=stamp has a background image and i want it to change when the form is sent.
- Has been a member for 2-3 years
- Exclusive Author
- Sold between 100 and 1 000 dollars
- Bought between 1 and 9 items
- United States
- Has been a member for 2-3 years
- Exclusive Author
- Sold between 100 and 1 000 dollars
- Bought between 1 and 9 items
- United States
Ok thanks. I still keep the php right? or is it all handled by the javascript?
- Has been a member for 2-3 years
- Exclusive Author
- Sold between 100 and 1 000 dollars
- Bought between 1 and 9 items
- United States
Here is the php script I normally use for my website. (I know absolutely nothing about php)
<?php if(isset($_POST))
{
// change this to match YOUR email address
$to = "myemail@gmail.com";
// the subject of the email that you will receive
$subject = "Message from Website";
// body of the email
// *****************
$message = "Message from your website:\n\n";
$message .= "From: " . stripslashes($_POST["name"]) . "\n";
$message .= "Email: " . $_POST["email"] . "\n";
$message .= "Message: " . stripslashes($_POST["message"]) . "\n\n";
$message .= "IP Address: " . $_SERVER["REMOTE_ADDR"] . "\n\n";
$message .= "Sent from: " . $_SERVER["HTTP_HOST"] . "\n\n";
// *****************
// end of the body
// from address of the message
$from = $_POST["email"];
$headers = "From: ".$_POST["email"];
// send mail message
mail($to,$subject,$message,$headers);
header( 'Location: thanks.html' ) ;
}
?>
I have in the past just send the user to a thank you html page but this time I have a one page scrolling site and want to keep the user there.
Now for my question in there any way I can just have the php change a random image from something to something else upon the form being submitted? (like the image is blank and then when they submit the form it changes to something that says “thanks”) Do I need another php script or can this one be added to to do what I want? also is that something that php can do or do I need to add some javascript/jquery?
Thanks so much! - php challenged person
- Has been a member for 2-3 years
- Exclusive Author
- Sold between 100 and 1 000 dollars
- Bought between 1 and 9 items
- United States
Wow I thought there were like tons more than 25 I got 20 but turned them in the day before the end of the competition. I totally forgot speed was of the essence.
Congrats to both winners!
- Has been a member for 2-3 years
- Exclusive Author
- Sold between 100 and 1 000 dollars
- Bought between 1 and 9 items
- United States
I was wondering if anybody here has used jcart? I need some help with it. or Knows of a javascript/php shopping cart that is pretty easy to use. I need one that collects items in a cart and then collects billing/shipping/creditcard info via a form and then sends an email.
I have jcart almost where I want it but am not good enough to edit it myself (due to my lack of php knowledge)
Thanks
- Has been a member for 2-3 years
- Exclusive Author
- Sold between 100 and 1 000 dollars
- Bought between 1 and 9 items
- United States
Awesome can’t wait I am no font designer myself but am glad I will be able to get some here
