User Profile

Collapse

Profile Sidebar

Collapse
immohito
immohito
Last Activity: Jul 11 '12, 09:21 AM
Joined: Jun 12 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • immohito
    started a topic Onsubmit not working!
    in PHP

    Onsubmit not working!

    My onsubmit function is not working.

    My PHP file has two forms. Both form tags have an onsubmit attribute that links to the same javascript file. The first form's onsubmit is working. The function being called by the second form has been simplified to this:

    Code:
    function UserDataCheck()
    {
    return false;
    }

    The form tag is

    Code:
    echo "<form name='user_form' method='post' onsubmit='return
    ...
    See more | Go to post

  • immohito
    started a topic Trouble sending email using php form
    in PHP

    Trouble sending email using php form

    Hi I am going crazy trying to send an email using XAMPP, my php form on my localhost server.

    This is the email section of the code

    Code:
    if($insert_result)
    		{	
    			
    			ini_set('SMTP', 'ssl://smtp.gmail.com');
    			ini_set('smtp_port', 465); 
    			ini_set('sendmail_from', 'myemail@gmail.com');
    			ini_set('sendmail_path', 'localhost\C:\Program Files\xampp\sendmail\sendmail.exe');$to
    ...
    See more | Go to post

  • Help needed with saving today's date back to database.

    My echo $update_sql statement shows this

    UPDATE projects SET dex='{FD35CF46-D1F4-A05F-D4C6-16CF86A2E05F}', Name='h', Designation='f' , Phone=59, PMC=1, Quality=1, Progress=1, Issues=1, Responsiveness =1, Commitments=1, Safety=1, SLevel=1, Total=8, Improvement='No comment for now', Future='N', Date=2012/06/21 WHERE dex='{135C2B55-B95D-786D-9CBD-9563B3AF04B3}'

    The date shown here is the current date. However, the date stored...
    See more | Go to post

  • PHP driven form doesn't update data back to database!!!

    Code:
            $name = sanitize($_POST['name'], "text"); 
    		$designation = sanitize($_POST['designation'], "text");
    		$phone = sanitize($_POST['phone'], "int");
    		$date = sanitize($_POST['date'], "text");
            $id = sanitize($_POST['id'], "text"); 
            $new_id = create_guid(); 
    		
    		include_once "connect.php";
    		
    		$update_sql
    ...
    See more | Go to post

  • Thanks for the response. But I'm afraid that I might not have explained the problem well. You see, I can't define the value using html because the fields are not static. The form has to be reused with new values and I can't expect the person using the form to take their client's feedback to go change the html every single time. Therefore, I need a better solution than that. Please suggest anything that can help me fill half the form first and then...
    See more | Go to post

    Leave a comment:


  • How to create a php form that can be filled in 2 separate sessions?

    I have created a basic php feedback form with 20 fields. However, instead of sending an empty form for my client to fill, I want to pre determine some of the fields first. So basically, the php code should allow me to fill some of the fields first and then the submit button should send a link of a partially filled form to the client. The client will then complete the form and click submit, which will save data from all the fields back to the database....
    See more | Go to post
No activity results to display
Show More
Working...