User Profile

Collapse

Profile Sidebar

Collapse
spaghetti
spaghetti
Last Activity: Mar 3 '07, 04:22 PM
Joined: Dec 3 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • spaghetti
    replied to validate database entry then echo message
    in PHP
    Thanks for that - I will try to implement it. I have the following validation already in place - which was generated by dreamweaver's inbuilt form validator - it seems to function fine but probably isn't the best way to do this... but hey, there's only so many hours in a day!..

    I appreciate the advice!

    [HTML]function MM_validateForm () { //v4.0
    var i,p,q,nm,test,n um,min,max,erro rs='',args=MM_v alidateForm.arg uments;...
    See more | Go to post

    Leave a comment:


  • spaghetti
    replied to validate database entry then echo message
    in PHP
    Sorry... as I said, I'm finding my way around with this. Here's the form. Thanks for looking.

    [HTML]
    <div class="formRec" >
    <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="Recommend Friend" onsubmit="MM_va lidateForm('Nam e','','R','ADno ','','R','RecFr iend','','R','R ecEmail','','Ri sEmail');return document.MM_ret urnValue">
    ...
    See more | Go to post

    Leave a comment:


  • spaghetti
    started a topic validate database entry then echo message
    in PHP

    validate database entry then echo message

    Hi

    I'm still new to this but I think I'm making progress. Below is a functioning script that inserts 4 fields into a database. After advice from a previous post the form is being processed on the same page. The insert into database works fine but I only want to display the 'thank you message' after data has been entered. Currently it is displayed all the time.

    Here's the script:

    [PHP]// connect to server...
    See more | Go to post

  • Thanks for your input - I think I've got a clearer picture now. I'll see if I can get this to work.

    I only thought it was possible because I have a 3rd party form that displays a message after the user updates their profile. But I couldn't work out how it was implemented and didn't trust myself not to break it!

    Thanks for your guidance.
    See more | Go to post

    Leave a comment:


  • spaghetti
    started a topic display thank you message in original form page
    in PHP

    display thank you message in original form page

    Hi forum

    I'm totally new to php and mySQL so please excuse my ignorance. I've been trying to research this but because I'm not totally sure what I'm searching for I haven't yet found a solution.

    Essentially I have a form that posts data (name, number, recommended friend, recommended email). This data is then inserted into a table and a "Thank you for your recommendation" message is echoed. So far so good....
    See more | Go to post
No activity results to display
Show More
Working...