0
<?php
		 						$posapp=$_POST['txtapplied'];
								$fname=$_POST['txtfname'];
								$mname=$_POST['txtmname'];
								$lname=$_POST['txtlname'];
								$month=$_POST['txtmonth'];
								$day=$_POST['txtday'];
								$year=$_POST['txtyear'];
								$age=$_POST['txtage'];
								$eadd=$_POST['txtemail'];
								$homenumber=$_POST['txthnum'];
								$cpnumber=$_POST['txtcpnumber'];
								$address=$_POST['txtaddress'];
								$religion=$_POST['txtreligion'];
								$birthplace=$_POST['txtbplace'];
								$height=$_POST['txtheight'];
								$weight=$_POST['txtweight'];
								$civilstatus=$_POST['txtcstatus'];
								$college=$_POST['txtcollege'];
								$course=$_POST['txtcourse'];
								$year=$_POST['txtyeargrad'];
								
							$db=mysql_connect('localhost','root','') or die ('Cannot connect to MYSQL!');
							@mysql_select_db('dbriomra') or die('Cannot connect to database');

		
							$query=mysql_query("Insert into onlineapplication values ('posapp', 'fname', 'mname', 'lname', 'month', 'day',
'year', 'age', 'eadd', 'homenumber', 'cpnumber', 'address', 'religion', 'birthplace', 'height', 'weight', 'civilstatus', 'college','course', 'year')");
							
							if($posapp!=NULL || $fname!=NULL || $mname!=NULL || $lname!=NULL || $month!=NULL || $day!=NULL || $year!=NULL || $age!=NULL || $eadd!=NULL || $homenumber!=NULL || $cpnumber!=NULL || $address!=NULL || $religion!=NULL || $birthplace!=NULL || $height!=NULL || $weight!=NULL || $civilstatus!=NULL || $college!=NULL || $course!=NULL || $year!=NULL)
							
					
								if(mysql_query($query))
								{
									echo "<br>" .mysql_affected_rows($db). "record added";
								}
								else
								{
									echo "<br> Problem Loading";
								}
					
							mysql_close($db);
				
					?>

the declarations of my textboxes, are not detected, i don't know why, PLEASE HELP. thank you!

Edited by shielaolid: n/a

3
Contributors
4
Replies
5
Views
5 Years
Discussion Span
Last Post by shielaolid
0

You should read the forum guidelines. Use code tags!

You've posted this in 3 separate threads. You're having a laugh mate.

0

You should read the forum guidelines. Use code tags!

You've posted this in 3 separate threads. You're having a laugh mate.

im sorry. i'm confused

0

try

var_dump($_POST);

if they don't show up you got a problem with your form page

it doesn't show any error, by the way, thanks

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.