Jump to content

revraz

Members
  • Posts

    6,911
  • Joined

  • Last visited

    Never

Everything posted by revraz

  1. META Refresh tag in HTML or Java. I prefer the Java one.
  2. revraz

    Symbols

    They appear as symbols in the DB or on the webpage?
  3. I would contact Cooldude in that post to see if he found a resolution.
  4. That wasn't the exact code, it was to give you an idea on how to do your code to make it work.
  5. Someone else with the same issue http://www.phpfreaks.com/forums/index.php/topic,169205.0.html
  6. Google or search on cron jobs
  7. Depends on the email client on the other end. For example, I have HTML disabled in my email client.
  8. Don't mix session_start() with session_register. Look at how they do it with their other pages and copy the code.
  9. If people would take 1 min to read the stickies in the top, we wouldn't have these exact same questions posted over and over.
  10. Your first OPTION shouldn't have a backslash in it.
  11. Your users dont directly interact with the database, your PHP scripts do.
  12. Get their Usernames and send them a email.
  13. Should probably start using XHTML <br />
  14. If all worked well, then all you should have to do is change the Form Action to itself, and put some PHP code at the top to see if the page has been submitted. <?php if(!isset($_POST['submit'])) { ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Sign UP</title> </head> <body> <td><form name="form1" method="post" action=<?php $_SERVER['PHP_SELF']; ?>> <table align="center"> <tr valign="baseline"> <td nowrap align="right">Name:</td> <td><input type="text" name="name" value="" size="32"></td> </tr> <tr valign="baseline"> <td nowrap align="right">Address:</td> <td><input type="text" name="address" value="" size="32"></td> </tr> <tr valign="baseline"> <td nowrap align="right">Address1:</td> <td><input type="text" name="address1" value="" size="32"></td> </tr> <tr valign="baseline"> <td nowrap align="right">Address2:</td> <td><input type="text" name="address2" value="" size="32"></td> </tr> <tr valign="baseline"> <td nowrap align="right">Address3:</td> <td><input type="text" name="address3" value="" size="32"></td> </tr> <tr valign="baseline"> <td nowrap align="right">Address4:</td> <td><input type="text" name="address4" value="" size="32"></td> </tr> <tr valign="baseline"> <td nowrap align="right">County:</td> <td><input type="text" name="county" value="" size="32"></td> </tr> <tr valign="baseline"> <td nowrap align="right">Zip:</td> <td><input type="text" name="zip" value="" size="32"></td> </tr> <tr valign="baseline"> <td nowrap align="right">Telephone:</td> <td><input type="text" name="telephone" value="" size="32"></td> </tr> <tr valign="baseline"> <td nowrap align="right">Email:</td> <td><input type="text" name="email" value="" size="32"></td> </tr> <tr valign="baseline"> <td nowrap align="right">Username:</td> <td><input type="text" name="username" value="" size="32"></td> </tr> <tr valign="baseline"> <td nowrap align="right">Password:</td> <td><input type="password" name="password" value="" size="32"></td> </tr> <tr valign="baseline"> <td nowrap align="right"> </td> <td><input type="submit" value="Insert record"></td> </tr> </table> <input type="hidden" name="MM_insert" value="form1"> </form> <p> </p> </body> </html> <?php } else { include('config.php'); // table name $tbl_name=temp_users; // Random confirmation code $confirm_code=md5(uniqid(rand())); // values sent from form $name=$_POST['name']; $address=$_POST['address']; $address1=$_POST['address1']; $address2=$_POST['address2']; $address3=$_POST['address3']; $address4=$_POST['address4']; $county=$_POST['county']; $zip=$_POST['zip']; $telephone=$_POST['telephone']; $email=$_POST['email']; $username=$_POST['username']; $password=$_POST['password']; // Insert data into database $sql="INSERT INTO $tbl_name(confirm_code, name, address, address1, address2, address3, address4, county, zip, telephone, email, username, password)VALUES('$confirm_code', '$name', '$address', '$address1', '$address2','$address3', '$address4','$county' ,'$zip', '$telephone', '$email', '$username', '$password')"; $result=mysql_query($sql)or die(mysql_error()); // if suceesfully inserted data into database, send confirmation link to email if($result){ // ---------------- SEND MAIL FORM ---------------- // send e-mail to ... $to=$email; // Your subject $subject="Your confirmation link here"; // From $header="from: postmaster@localhost <postmaster@localhost>"; // Your message $message="Your Comfirmation link \r\n"; $message.="Click on this link to activate your account \r\n"; $message.="http://localhost/confirm.php?passkey=$confirm_code"; // send email $sentmail = mail($to,$subject,$message,$header); } // if not found else { echo "Not found your email in our database"; } // if your email succesfully sent if($sentmail){ echo "Your Confirmation link Has Been Sent To Your Email Address."; } else { echo "Cannot send Confirmation link to your e-mail address"; } } ?>
  15. So the top HTML is one page, and the signup_ac.php is another page, but is the PHP part of the code you posted? And all works fine as two seperate files?
  16. Does your webhost also provide you with a MySQL DB?
  17. Welcome to the forums. We try to help others with the code they create rather than create it for them. So if you post what you have so far, people will usually be eager to help you. Also, most of this has been posted about many times, so you may even want to try searching the forums for Forms and the like and you'll probably get some good examples right away.
  18. That is config.php. The error is in some_file.php This is the complete file. The error stats that this file has already sent a header. See error below. Warning: Cannot modify header information - headers already sent by (output started at /some_dir/some_file.php:11) As far as the ":11" If that means lines then it must have the html, header, and body echoed out.
  19. See here http://www.phpfreaks.com/forums/index.php/topic,169634.msg748788.html#msg748788
  20. Remove the empty ' ' for the ID and the last two empy ' '. If they can be null, then don't even send it. May want to specify the columns too.
  21. I entered BBCODE in the search field http://www.phpfreaks.com/forums/index.php/topic,152188.0.html
  22. Post it
  23. Use some sort of a verification code before it lets them add something.
  24. Where is session_start() in index.php?
×
×
  • 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.