hi friends....
friends i have a problem with my form. when i submit my form in localhost it is working properly but in servar it is saying
"USE THIS CAL TO MAKE AJAX SUBIMISSION". my code is working in localhost and storing values in database also but why it showing that alert massage in server? please let me know my mistake its very urgent dudes... plss give me replay....
this is my code
<?php
mysql_connect("naveenbeeracom1.ipagemysql.com","gogetjob","goget123");
mysql_select_db("goget");
if (isset($_POST['sub']))
{
$college=$_POST['colname'];
$dist=$_POST['dist'];
$state=$_POST['state'];
$contact=$_POST['phn'];
$mail=$_POST['mail'];
$uname=$_POST['username'];
$col=str_replace(" ","_",$college);
$pwd=$_POST['pwd'];
$url=$_POST['url'];
$hostimg1=$_FILES["hostimg1"]["name"];
$hostimg2=$_FILES["hostimg2"]["name"];
$colimg1=$_FILES["colimg1"]["name"];
$colimg2=$_FILES["colimg2"]["name"];
$colimg3=$_FILES["colimg3"]["name"];
$colimg4=$_FILES["colimg4"]["name"];
require ("collegelogin.php");
if(($college!=null)&&($uname!=null)&&($dist!=null)&&($state!=null)&&($pwd!=null)&&($mail!=null)&&($c ontact!=null)&&($url!=null))
{
move_uploaded_file($_FILES["hostimg1"]["tmp_name"],"load1/$hostimg1");
move_uploaded_file($_FILES["hostimg2"]["tmp_name"],"load1/$hostimg2");
move_uploaded_file($_FILES["colimg1"]["tmp_name"],"load1/$colimg1");
move_uploaded_file($_FILES["colimg2"]["tmp_name"],"load1/$colimg2");
move_uploaded_file($_FILES["colimg3"]["tmp_name"],"load1/$colimg3");
move_uploaded_file($_FILES["colimg4"]["tmp_name"],"load1/$colimg4");
$confirm=md5(uniqid(rand()));
$insert1="INSERT INTO colleges_temp(ver_code,name,designation,college,user,pwd,year,aff,hostel,hostimg1,hostimg2,co_edu,mi nority,bus,image1,image2,image3,image4,url,place,city,state,district,pin,mail,phn,course1,branch1,st ud1,course2,branch2,stud2,course3,branch3,stud3,course4,branch4,stud4,course5,branch5,stud5,course6, branch6,stud6,course7,branch7,stud7,course8,branch8,stud8,course9,branch9,stud9,course10,branch10,st ud10,course11,branch11,stud11,course12,branch12,stud12,course13,branch13,stud13,course14,branch14,st ud14,course15,branch15,stud15,course16,branch16,stud16,course17,branch17,stud17,course18,branch18,st ud18,course19,branch19,stud19,course20,branch20,stud20) VALUES ('$confirm','$_POST[yourname]','$_POST[designation]','$_POST[colname]','$_POST[username]','$_POST[pwd]','$_POST[year]','$_POST[aff]','$_POST[hostel]','load1/$hostimg1','load1/$hostimg2','$_POST[co]','$_POST[min]','$_POST[bus]','load1/$colimg1','load1/$colimg2','load1/$colimg3','$load1/colimg4','$_POST[url]','$_POST[place]','$_POST[city]','$_POST[state]','$_POST[dist]','$_POST[pin]','$_POST[mail]','$_POST[phn]','$_POST[course1]','$_POST[branch1]','$_POST[std1]','$_POST[course2]','$_POST[branch2]','$_POST[std2]','$_POST[course3]','$_POST[branch3]','$_POST[std3]','$_POST[course4]','$_POST[branch4]','$_POST[std4]','$_POST[course5]','$_POST[branch5]','$_POST[std5]','$_POST[course6]','$_POST[branch6]','$_POST[std6]','$_POST[course7]','$_POST[branch7]','$_POST[std7]','$_POST[course8]','$_POST[branch8]','$_POST[std8]','$_POST[course9]','$_POST[branch9]','$_POST[std9]','$_POST[course10]','$_POST[branch10]','$_POST[std10]','$_POST[course11]','$_POST[branch11]','$_POST[std11]','$_POST[course12]','$_POST[branch12]','$_POST[std12]','$_POST[course13]','$_POST[branch13]','$_POST[std13]','$_POST[course14]','$_POST[branch14]','$_POST[std14]','$_POST[course15]','$_POST[branch15]','$_POST[std15]','$_POST[course16]','$_POST[branch16]','$_POST[std16]','$_POST[course17]','$_POST[branch17]','$_POST[std17]','$_POST[course18]','$_POST[branch18]','$_POST[std18]','$_POST[course19]','$_POST[branch19]','$_POST[std19]','$_POST[course20]','$_POST[branch20]','$_POST[std20]')";
mysql_query($insert1);
$message="Your Account has been created with \r\n User Id: ".$uname."\r\n Password: ".$pwd."\r\n Click on this Link to Login to Your Account: http://www.gogetjob.com/confirmation1.php?passkey=$confirm";
$subject="College Account Created Succesfully";
$header="FROM: GoGetJob";
mail($mail,$subject,$message,$header);
echo '<script>window.location="#college_mail"</script>';
}
}
?>
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks