User Profile

Collapse

Profile Sidebar

Collapse
paviktherin
paviktherin
Last Activity: Apr 9 '07, 05:42 PM
Joined: Apr 3 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • umm scratch that, ignore this I found that on my page I had a base target="article " for some reason. don't ask me why. anyway sorry.
    See more | Go to post

    Leave a comment:


  • action="page.php" in my form opens in new window, why?

    Okay so I have this form that I have made in order to post comments on a website, the form works fine when I send it to guernica.php for example but it opens it in a new page, I don't know why. Then to make things even more weird I have the guernica.php page automatically redirect to guernica.html and if you submit a form then have it redirect you back to that page and submit a new form it doesn't open in a new window. In other words only the first...
    See more | Go to post

  • OK, i figured out that the reason it was sending blanks to the database table is because I had a onclick formReset() in the form so that it would clear the form after they submitted it, unfortunately it was clearing the form and sending that cleared information. so now I have it sending stuff, or at least it echos what was entered into the form. However now it is giving me an error of duplicate entry for Key 1. and that will create a problem because...
    See more | Go to post

    Leave a comment:


  • yeah I know that the validation is killing me, I will have to look into that. Know any good sites that help explain validation? thanks again guys.
    See more | Go to post

    Leave a comment:


  • Okay thanks guys it looks like it is doing something cuz the insert.php page gives me the echo response of thank you, your comment has been added. However on the database it has only added blanks in the columns

    <?php
    $con = mysql_connect(" hostname","user name","password ");
    if (!$con)
    {
    die('Could not connect: ' . mysql_error());
    }

    mysql_select_db ("ammloc_posts" ,...
    See more | Go to post

    Leave a comment:


  • Interesting, thanks guys for all your help. Looks like I still have quite a bit to learn. :P Thanks again....
    See more | Go to post

    Leave a comment:


  • Oh man, thank you so much. So if I just change it to say user insted that could fix that problem? and thank you, I forgot about the validating....
    See more | Go to post

    Leave a comment:


  • Inserting Data into a Database from a form using PHP

    Okay this should be something fairly easy, but due to my lack of experience I am having a lot of trouble. I am receiving the following error when I submit the information in my form to a page called insert.php

    Error: You have an error in your SQL syntax; check the manual that
    corresponds to your MySQL server version for the right syntax to use
    near 'From, Comments) Values ('','','')' at line 1

    here is...
    See more | Go to post
No activity results to display
Show More
Working...