Jump to content

steves

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

steves's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Currently the only form made is the one that inserts the information to the database, which works great.  What javascript code should I be looking for to help me send an email with the submitted information at the same time?
  2. Is it possible to have 2 different forms trying to perform an action at the same time?  The first form will insert information into the database, the second form would send an email stating that new data has been entered.  Will this work or am I going about it the wrong waY? <form method="post" action="insert.php"> <form method="post" action="sendemail.php"> Thank you Steve
  3. That fixed my problem, thank you very much for the fast response and willingness to help me out in this time of learning. Steve
  4. Ok i went ahead and made this change and still nothing.  [code] Resort Name: <input type=text name=resort_name value=".$title3."><br> Resort Location: <input type=text name=resort_location value=".$title4."><br> [/code] If i put quotes around name="resort_name"  then it gives me an error message.  However this way it will display the text fields with the data, but still not pulling anything but the first word from the row.  Strange thing is if I put $title3  just like that at the very bottom of the code, it displays the entire resort name without a problem.  I just don't get it.
  5. Yes I have phpmyadmin installed right now and all the informatoin is there.  However I am slowly trying to build my own admin system so I will not have to rely on phpadmin.  For example a resort location shows up in the database as "Las Vegas, Nevada" as being in the resort_location row.  However with the script posted above, it will only pull out the word "Las" and move on to the next row.  Any help is appreciated on this, thank you.
  6. Ok so if I have a row of data that contains "All this text should show" and i query that row, the only thing that would show up is "All"  what command do I use to have it pull up all the data?  It's like when it hits a space, it stops and goes onto the next row of information.  [code] $search = @$_GET['search'] ; SQL LOGIN HERE $query = "SELECT * FROM ads WHERE ad LIKE '$search' order by ad"; $result = mysql_query($query) or die(mysql_error()); while($row = mysql_fetch_array($result)){   $title =  $row["ad"];   $title2 = $row["ad_type"];   $title3 = $row["resort_name"];   $title4 = $row["resort_location"];   $title5 = $row["week"];   $title6 = $row["bed"];   $title7 = $row["bath"];   $title8 = $row["bath"];   $title9 = $row["ad_type"];   } echo " <form action=updated.php method=post> Ad: <input type=text name=ad value=$title><br> Ad Type: <input type=text name=ad_type value=$title2><br> Resort Name: <input type=text name=resort_name value=$title3><br> Resort Location: <input type=text name=resort_location value=$title4><br> Week: <input type=text name=week value=$title5><br> Bed: <input type=text name=bed value=$title6><br> Bath: <input type=text name=bath value=$title7><br> <input type=Submit value=Update> </form> "; ?> [/code]
  7. Ok so im trying to create a form, where the information is pulled from the database and displayed in the text fields.  However, I would like to have the ability to change any data in those text fields, hit update and have it saved in the database.  Here is the code I am working on to create the page that displays the text fields, however no data is being pulled from the database and is not showing up in these text fields.  Any help is appreciated.  I know right it will not actually update that data, i will work on that after this.  I am just trying to get the data shown in the text fields of the form right now.  Thank you.  *Made these changes below and it now works* [code] $search = @$_GET['search'] ; SQL LOGIN HERE $query = "SELECT * FROM ads WHERE ad LIKE '$search' order by ad"; $result = mysql_query($query) or die(mysql_error()); while($row = mysql_fetch_array($result)){   $title =  $row["ad"];   $title2 = $row["ad_type"];   $title3 = $row["resort_name"];   $title4 = $row["resort_location"];   $title5 = $row["week"];   $title6 = $row["bed"];   $title7 = $row["bath"];   } echo " <form action=updated.php method=post> Ad: <input type=text name=ad value=$title><br> Ad Type: <input type=text name=ad_type value=$title2><br> Resort Name: <input type=text name=resort_name value=$title3><br> Resort Location: <input type=text name=resort_location value=$title4><br> Week: <input type=text name=week value=$title5><br> Bed: <input type=text name=bed value=$title6><br> Bath: <input type=text name=bath value=$title7><br> <input type=Submit value=Update> </form> "; ?> [/code]
×
×
  • 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.