Jump to content

kevinritt

Members
  • Posts

    108
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://www.northshorewebdesign.net

Profile Information

  • Gender
    Male
  • Location
    Boston, MA

kevinritt's Achievements

Member

Member (2/5)

0

Reputation

  1. Thanks Voip03, That tutorial will get me started but my form is quite extensive: name, address, state, zip, phone, business, etc and will have input, radio, drop down fields. Creating the form is not a problem. The things I'm weak on are validation (best practices, security), inserting into database (I can do basic but I want to make sure I do it correctly) and I need a way to access the info once it's submitted. I'd need to send an email to admin whenever the form is submitted. Gravity Forms is great but it's the customization that's the problem. I know it's a lot - thanks for any help
  2. I would like to take info from a membership form that I created for my website and store it in a database. Can anyone recommend a tutorial that would guide me through the basics of doing this? The membership form has about 25 fields that I'd like to store in a db and referrence as needed. This is a wordpress site and i tried Gravity Forms but I need to have more flexibilty in the form creation. (I know this forum is for code already written, so admin can you move to apporpriate forum?) Thanks
  3. thanks. I've been looking at the osdate. I Will take a look at some of the others as well. I'll write my impressions of the one I use. Thanks for the help
  4. Thanks joel24. I did Google. I was checking to see if anyone had any experience with a particular script and could give some input. I want to use something that is coded correctly and is secure. I'm not sure how to verify if a script is adequate or not. I'm a little cautious when the demo send you to a 404 page http://date.tufat.com/2.1.3/index.php
  5. Does anyone know of an open source dating software script that is available or a tutorial that would help with the coding of one? (wasn't sure if this was the right forum to post this question)
  6. Thanks - good catch Typical rookie mistake
  7. didn't mean to remove that - I added $query ="INSERT INTO detention (date,comments) VALUES ('$date','$comments')"; $result = mysql_query($query) or trigger_error(mysql_error(),E_USER_ERROR); I get this error: Fatal error: No database selected in C:\wamp\www\Detention\index.php on line 10 Line 10 is the result variable $result I'm sure that it's something simple that I'm missing but I don't see it Here's the dbconn file: <? /* -- Configure the Variables Below --*/ $dbhost = 'localhost'; $dbuser = 'user'; $dbpasswd = 'pw'; $database = 'pickering'; /* Database Stuff, do not modify below this line */ $connection = mysql_connect("$dbhost","$dbuser","$dbpasswd") or die ("Couldn't connect to server."); $db = mysql_select_db("$database", $connection) or die("Couldn't select database."); ?>
  8. Still working on it but missing something. Here's what I changed: $connection = mysql_connect("$dbhost","$dbuser","$dbpasswd") or die ("Couldn't connect to server."); $db = mysql_select_db("$database", $connection) or die("Couldn't select database."); Here's the query: $query ="INSERT INTO detention (date,comments) VALUES ('$date','$comments')"; $result = mysql_query($query) or die ('Data not entered');
  9. I keep getting a 'No database selected' error when I try to enter data. Here's the code for the dbconn.php file in the connections folder: <?php $hostname_dbconn = "localhost"; $database_dbconn = "pickering"; $username_dbconn = "name"; $password_dbconn = "password"; $dbconn = mysql_pconnect($hostname_dbconn, $username_dbconn, $password_dbconn) or trigger_error(mysql_error(),E_USER_ERROR); ?> and here's the query: <?php require_once('connections/dbconn.php'); if ($_POST['submit']) { // data from form $date = $_POST['date']; $comments = $_POST['comments']; # THIS CODE TELL MYSQL TO INSERT THE DATA FROM THE FORM INTO YOUR MYSQL TABLE $query ="INSERT INTO detention (date,comments) VALUES ('$date','$comments')"; $result = mysql_query($query) or die ("Sql Error" .mysql_error()); echo 'data entered' <br /> <meta http-equiv="refresh" content="2; url=./index.php">'; } else { ?> rest of page ... I tried changing the path to the dbconn from this connections/dbconn.php to this /connections/dbconn.php still cannot get it to work
  10. At the risk of sounding like an idiot - does anyone know of a good blog tutorial? What I am trying to do is track daily notes that I write about students in a school. I want to be able to add/edit entries based on the students' names. So let's say on Oct 2: John W, Lisa F, and Jeff B were entered as an entry for the day. 2 months from now if I want to look up entries that mention Lisa F, I'd like everyone that has her name to show. I though something like a blog would work best but I'm open to suggestions. I'm not programmer but I want to do this on my own. Any help is appreciated
  11. still not working Here's the current page: http://saugustv.org/index.php?page=contact and here's the page with the call to the database and the text editor: http://saugustv.org/indexLiveTest.php?page=2 They use the same CSS but as you can see they don't look the same. Any help would be appreciated - I'm clueless at this point
  12. Would this: echo $row->content; be changed to: echo stripslashes($row->content);
  13. Hi, I'm not sure if this is a PHP issue or TinyMCE. I have content that is saved in a database. It gets called using this code: <?php $page = (isset($_GET['page'])) ? $_GET['page'] : "1"; $sql = "SELECT content FROM pages WHERE id='$page'"; $result = $conn -> query($sql) or die(mysqli_error()); if($result) { $row = $result->fetch_object(); echo $row->content; } ?> The problem is when the code is out put on the site. I save the html like this: <tr> <td class="header">Name</td> <td class="header">Title</td> <td class="header">Email</td> </tr> but it ends up looking like this: <tr> <td class=\"header\">Name</td> <td class=\"header\">Title</td> <td class=\"header\">Email</td> </tr> Futhermore, it gets processed like this in TinyMCE: <tr> <td class="\"header\"">Name</td> <td class="\"header\"">Title</td> <td class="\"header\"">Email</td> </tr> Because of this the CSS classes and IDs do not work. Is there something I can do that would remove the extra characters? Thanks
×
×
  • 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.