Jump to content
StudioWeb Forums

krazigoddezz

Member
  • Content Count

    43
  • Joined

  • Last visited

Community Reputation

0 Neutral

About krazigoddezz

  • Rank
    Member
  1. I see what you mean. The blue boxes... Try setting your border to 0px for the div or table. If it's not that, you need to see if you have borders on the images themselves and remove those or set them to 0px. Hope that solves your problem.
  2. ok i just finished fixing it after about 45 mins when i realized i forgot to set it to is not. thats why it wasnt working. and i fixed up the regExp <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <script type="text/javascript"> function validateFormOnSubmit(theForm) { var reason = ""; reason += validateFirst_N
  3. figured out the problem to the syntax error. its supposed to be: var parsed = /^\d{1}/$; not var parsed = /^\d{1}$; it was just missing forward slash. was that the only error you were getting? when i input data correctly it still gives me the error message. are you getting that too?
  4. oh ok... ill work on that some more then. thanks so much! i also have some questions about validating the user's input on the guest count. is it possible to call variables in the database an use php to validate it? So i figure it would be best to explaing my thought process on this since it probably changed from when i first started working on this almost a month ago even though you are fully aware but feel the need to update others reading this thread. im restricting the amount of guest that each person who receive an invitation can bring only a certain number of people. so
  5. the javascript validation isn't working. i tried it in both firefox and ie and i get nothing. sigh... so this is what i have: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <script type="text/javascript"> function validateFormOnSubmit(theForm) { var reason = ""; reason += validateFirst_Name(theForm.first
  6. wow... i never heard of injection. i looked up on how to use it at the w3schools site because i didnt completely understand tizag. but after seeing it utilized two different ways, it makes sense. thank you. now i get what you are saying about the code not executing. so data now saves to the database (yay ). thank you so much! but now i have to create an if statement for people trying to enter in more guests than they are allowed to let them know it doesnt work and then add in some javascript to validate the textbox input to make sure there are no null fields and numbers and letters
  7. so since the first line in guestRSVP.php is if($Submit), it won't work? why exactly is that? you mentioned that it will not work because $Submit has yet to be executed. isnt it executed when the user click submit on RSVP.html through the form's submit button? like i said... im a php noob and learning as i go along. Well, I just thought of something... give me a few hours... i need to proofread, edit, and provide feedback on a paper for my mommy (shes going back to school after 13+ years) and ill let you know if i get what im thinking to work or not.
  8. this is the page with the form: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>RSVP</title> <style type="text/css"> <!-- .style1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #161616; } body { background-color: #161616; } a:link { color: #D70000; text-decoration: none; } a:visited { text-decoration: none; c
  9. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Guest RSVP</title> <style type="text/css"> <!-- .style1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #161616; } body { background-color: #161616; } a:link { color: #D70000; text-decoration: none; } a:visited { text-decoration: none; color: #D70000; } a:hover { text-d
  10. <form method="post" action="guestRSVP.php"> <p class="style1">First Name: <input name="first_name" type="text" id="first_name" maxlength="20" size="30"/> </p> <p class="style1">Last Name: <input type="text" name="last_name" id="last_name" maxlength="20" size="30"/> </p> <p class="style1">Number of guests: <input name="guest_count" type="text" id="guest_count" size="5" maxlength="2" /> </p> <p
  11. now with this code, it loads the php page but it doesn't print anything to the page when the info is submitted. so it doesnt tell me whether or not the code was submitted fine or if there was an error. so the only way it can be checked if i check the database, which is still leaving the guest count at 0.
  12. if($Submit) { //Connect to and use database $conn = mysql_connect("server", "user", "password") or die ("Logging was not successful"); mysql_select_db("database"); //Make variables $first_name = $_POST[first_name]; $last_name = $_POST[last_name]; $guest_count = $_POST[guest_count]; //Make guest_count string and integer $theGuestCount= (int)$guest_count; //Update guest first name, last name, and guest count to guest table $result= mysql_query("UPDATE guest SET guestCount='$theGuestCount' WHERE $first_name=firstName and $last_name=lastName and $theGuestCount<=guestAllowed"); //If upda
  13. so i created theGuestCount variable just as above, i still receive the same error but now its on the line with the </html> tag. sigh..
  14. ok.. so i found a solution to my problem... free webhost with free mysql database and can use myphpadmin. so i tested out the code and get this error after the first name, last name, and number of guests are submitted: Parse error: syntax error, unexpected $end in /home/krazigoddezz/public_html/guestRSVP.php on line 106. line 106 on the guestRSVP.php is the next line after the </html> tag. so i went back to make sure i did not miss any curly brackets and they are all there. so the only other thing i can think of is that when the user enters the number of attending guests (gues
  15. Thanks Faulken but it was a no go. I'm going to try get the localhost problem taken care of. If not I guess I'll have to take another different approach. I originally tried using Visual Studio and for some strange reason, I could not create a database. I'm beginning to think there is actually something wrong with my computer. If individually installing mysql, php, and apache does not fix my little problem, do you have any suggestions on how I should go about doing this aside from using an RSVP page from a wedding website. I'm trying to avoid that since many of them have design restrictio
×
×
  • Create New...