Jump to content

danielhieb

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

danielhieb's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I want to understand how the script works. Maybe in a story line or something. The end result is basically a small menu that allows a user to update their quantity of item and then eventually i will have it update the price based on price of item * quantity. I copied this script from a tutorial.
  2. aahhhhhahahahaha. lol. lol. lol. my jimminy.
  3. Hi there. I am working on a calculator kind of deal. I just don't know what the printf syntax is doing to (populate) the variable(s). Also, 'how' is it doing this in the below script>? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php if(isset($_POST["quantity"])) $quantity = settype($_POST["quantity"], "integer"); else $quantity = 1; $item_price = 5.99; printf("%d x item = $%.2f", $quantity, $quantity * $item_price); ?> <FORM ACTION="buy.php" METHOD=POST> Update quantity: <INPUT NAME="quantity" SIZE=2 VALUE="<?php echo $quantity;?>"> <INPUT TYPE=SUBMIT VALUE="Change quantity"> </FORM> </body> </html>
  4. Thanks. Merry Christmas and a prosperous new year to you too my friend!
  5. Welcome!!!
  6. the power of the body is the power of the mind. You can do it!!! I believe in you!
  7. Sup.
  8. Hey there. I was 23 just last week. How's it feel? I'm here to learn php as well. I got the drift of it's importance but there are so many switches that i need to know to get good. lol. My dad is a sql kinda guy and knows little about php or html. I just have no friends that understand me (my tech vocab), so i've come here.
  9. You are totally right. I admit i do like html...i'm just realizing html is so much 'awesomer' when combined with some of the more advanced scripting languages. Thanks for pointing that out. Html is truly awesome but i generalized the overall meaning to my message a bit. html was a great stepping stone for me.
  10. There's still a small chance the world won't end. The worst that can happen is we just won't wake up again. lol.
  11. what do you have knowledge in already as far as scripting languages?
  12. I first tried c. I sucked. I then tried java. I sucked. I then tried php. I sucked. I then tried html, and found out it sucks so now i'm trying php.
  13. Dang. I thought that might be the case. I saw some smtp information i could add to the php.ini at another site online, but it didn't list auth abilities so your feedback affirms this. Thanks for the prompt response, thorpe.
  14. I am learning php and am attempting to use a remote smtp server to test the mail() command in a php after submitting an html form. I am using an apache server on a windows 7 machine. Is there any way to alter the php.ini to use an external smtp server, such as smtp.gmail.com ? I cant seem to get it working. 17243_.php
  15. My name is Dan. You can tell by the user name. I am familiar with alot but know a little. i started in the late dos days. i started building machines with the 386, in 92. I'm 24 as of january 1st in this last year of planet earth. I am in my third year of a two year degree in computer science (1st year was fulfilling pre-reqs). I know dos; batching;, am familiar with html 4 and 5, css (2? 3?), flash, rfc-822. Overall, i am the most familiar with basic html maybe because its so simple but i am not much of an artist so i need to become dynamic. I have come here to advance my basic knowledge of php. Thanks for the opportunity of introduction! -Dan
×
×
  • 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.