Jump to content

cdm89

New Members
  • Posts

    6
  • Joined

  • Last visited

cdm89's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hey everyone, This is probably something really simple, but i cant seem to figure out how to do this, i want to create a form that once the person has filled out their info (email, name, age, bio...etc) it will send them an email confirmation with a time stamp of when they entered the info. My question is, how the heck do i get php to take the email address they have submitted and send a confirmation to that email address? Im assuming i need to create a variable for the <input> for the email text area? im not so sure though... thank you
  2. Hello, I want to put my php script on the same file as my html form, how exactly would i do this? in other words in the <form action="..." method="post"> what do i put in the action= area if the script is right above it? Thanks
  3. Thank you so much, simple and dumb mistakes i need to pay more attention to detail....
  4. Ah, thanks! The code is working now. The only problem is, instead of displaying numbers it just displays my variable $x ten times
  5. Thanks for the help, unfortunately this didn't seem to work now the browser just displays '; if ($x & 1) {echo ("odd")}; else {echo ("even")}; } ?>
  6. Hey everyone, sorry this is really simple but i am a big nube! so my class assignment is to create a script that counts to ten and displays which numbers are odd and which numbers are even. I'm almost positive that my code is correct, however the browser just displays my last bit of code starting at the '; to the end of the if/else statement. ...can someone please take a look at this ive been staring at it for days lol i think the problem is incorrect syntax, or maybe i didnt close something somewhere? but from what i can see i have all my closing tags ? <php for($x = 0; $x < 10; $x++) { echo 'Iteration: ' . '$x' . '<br />'; } if ($x & 1) {echo ("odd")}; else {echo ("even")}; ?>
×
×
  • 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.