azarudeen 0 Newbie Poster

hi,

well for that u plz check first that the id that u have given in the session is passing to 2nd page r not by putting an echo .Then if u get means put an if condition for that session id like this for eg.if u put like this means if the session id is !=empty means the page will auomatically redirect to the first page.

if($_SESSION=="")
header("Location:second.php");
else
header("Location:first.php");

azarudeen 0 Newbie Poster

hi,

when you register in the database you add another field as id and assign that id as autoincrement and pass that id in session

for eg,
$fetch=mysql_fetch_array($exeusid);
$userid=$fetch;
$_SESSION=$userid;
$_SESSION=$email;
header("Location: homepage.php?email=$email&id=$id&Password=$pass");

try by the given above format if any doubt ask i will explain upto my knowledge

azarudeen 0 Newbie Poster

Hello All,

I am a PHP newbie and have all my resources set up( by that I mean PHP,Apache server etc all working fine)

I have an html file and a PHP script to handle the inputs from the html form. However when I hit submit to send the data to the PHP script I get a blank page.

Below are my files.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN " "http://www.w3.org/TR/2000/REC -xhtml1-20000126/DTD/xhtml1-transitional.dtd">
 
<html xmlns ="http://www.w3.org/1999/xhtml" xml :lang="en" lang ="en">
<head>
     <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
    <title>HTML Form</title>
</head>
 
<body>
 
<!--Script 2.1 -from.html -->
 
<form action = "handle_form.php " method="post">
 
<fieldset><legend> Enter you information in the form below :</legend>
<p><b>Name :</b> <input type = "text" name = "name" size ="20" maxlength = "40"/></p>
 
<p><b>Email :</b> <input type = "text" name ="email" size="40" maxlength ="40"/></p>
 
<p><b>Gender :</b> <input type = "radio" name ="gender" value ="M" />Male
         <input type = "radio" name ="gender" value ="F" />Female
</p>
<p><b>Age :</b>
<select name = "age" >
    <option value ="0-30">Under 30</option>
    <option value ="30-60">Between 30 and 60</option>
    <option value ="60+">Over 60 </option>
</select></p>
<p><b>Comments :</b><textarea name = "comments" rows ="3" cols="50"></textarea></p>
</fieldset>
 
<div align = "center"><input type = "submit" name ="submit" value ="Submit Information"/><div>
 
</form>

****...and here is the PHP script handling the form above*************

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN " "http://www.w3.org/TR/2000/REC -xhtml1-20000126/DTD/xhtml1-transitional.dtd">
 
<html xmlns ="http://www.w3.org/1999/xhtml" xml :lang="en" lang ="en">
<head>
     <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
    <title>Form Feedback</title>
</head>
 
<body>
 
<? php # Script 2.2 -handle_form.php
 
echo "<p> Thank you …
azarudeen 0 Newbie Poster

Hi,

If any body have the auto fill textbox using ajax in php plz send me the function and also give some idea about that.waiting for your kindley posts

Thanks regards,
azarudeen

azarudeen 0 Newbie Poster

hi,
for this error Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/rekor/public_html/admin/top.php on line 6
You are not an administrator
in my view the variable u assinged in the query and in the database field name will be differnt i think r otherwise put an request for that varialble and echo it by that u can solve this error

azarudeen 0 Newbie Poster

http://www.wampserver.com/en/index.php

u can install from this site for php and mysql its good and for learning the above sites are well and also u can see www.w3schools.com also

azarudeen 0 Newbie Poster

hi,
now for that mail funcrion is working in your local host .if u work that paGE IN SERVER MEANS U CAN AVOID THAT ERRORS and functions will work properly u can also send mails also.if u want to avoid that errors in your localhost means put an @ symbol before that mail function like this for eg;

@mail($to,$subject,$message,$headers);

azarudeen 0 Newbie Poster

hi,

Thank u for your kind reply its working

azarudeen 0 Newbie Poster

hai to all,
i think its a simple only but i am not having clear idea how to pass the value from an page into an popup window in a javascript in php.if any ones knows or get any idea means plz post quicklywith an example


thank u,:idea:

azarudeen 0 Newbie Poster

how to calculate the date of birth by giving the date, month, year in the registration page