nav33n 472 Purple hazed! Team Colleague Featured Poster

English is a weird language.

nav33n 472 Purple hazed! Team Colleague Featured Poster

hail

nav33n 472 Purple hazed! Team Colleague Featured Poster

-590

nav33n 472 Purple hazed! Team Colleague Featured Poster

log
lung
gun

Experiment

nav33n 472 Purple hazed! Team Colleague Featured Poster

-582

nav33n 472 Purple hazed! Team Colleague Featured Poster

fail

nav33n 472 Purple hazed! Team Colleague Featured Poster

I searched everywhere, but I couldn't find a select tag which could hold 2 option values. :S If you, by any chance get the answer, please post it here. I am curious. :)

But, I have an idea. Instead of passing 2 different option values, why dont you concat both the values and then pass it ? You can then separate them when the user submits the page ?
Eg.

$concat="category1:http://siteurl1.com";
echo "<select name=\"select\">";
echo "<option value=\"$concat\">something1</option>";
......
......
echo "</select>";
?>
//And when the user submits the page, 
$selectedval=$_REQUEST['select'];
list($firstvalue,$secondvalue)=explode(":",$selectedval);
//$firstvalue will have category1
//$secondvalue will have [url]http://siteurl1.com[/url].

:) This is all I could think of.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb Bill !

nav33n 472 Purple hazed! Team Colleague Featured Poster

Language is Mandarin !

nav33n 472 Purple hazed! Team Colleague Featured Poster

to
toe
et

Project

nav33n 472 Purple hazed! Team Colleague Featured Poster

tail

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome Cool saint !

nav33n 472 Purple hazed! Team Colleague Featured Poster

hey yo I am sorry but that is very dumb..Why use PHP + MS Access that is a sucky combination. You see php is much much better with MySql. If you really need to use MS Access then I recomend you start getting into Asp.Net which just happens to be a little better with both MySql and Ms Access it really does not matter..You know what here is the code if you listen to me.

First things first. Make sure you have referenced System.Data and System.Data.OleDb like this

<%@ Page Language="C#/VB" %>
<%@ import Namespace="System.Data" %>
<%@ import Namespace="System.Data.OleDb" %>

Then lets say you have a button and a textbox and the button is suppossed to execute a query from an Ms Access database. Lets also say this is the code for the button and textbox within the aspx page.

<asp:TextBox id="TextBox1" runat="server">
<asp:Button id="Button1" runat="server" text="Execute Query" onclick="Do_Query"></asp:Button>

Then you would have to add this between your <script> tags

void Do_Query(object sender, EventArgs e)
{
            string strQuery = TextBox1.Text;
            OleDbConnection Con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=YourDatabase.mdb");
        	OleDbCommand Com = new OleDbCommand(strQuery, Con);
        	try
        	{
           		 Con.Open();
            		 OleDbDataReader dReader = Com.ExecuteReader();

            		while (dReader.Read())
            		{
                                                //Process Data Here
                                                //For example retrieve values
                                }
                                Con.Close();
                 }         
                 catch (OleDbException ex)
                 {
                                Response.Write(ex.ToString());
                 }
}

And yeah dud that is pretty much it..Trust me it is easier than PHP but anyways w/e..I like PHP too but I only use it with MySql..You can also do what the ppls above me suggested but then there is the issue of accessing remote databases..Lets just …

nav33n 472 Purple hazed! Team Colleague Featured Poster

huh! write a script to send the mail. Execute it and check if you get a mail !

nav33n 472 Purple hazed! Team Colleague Featured Poster

Some Tricks Really Entertain Stressed Stewardess Eyes, Dude !

nav33n 472 Purple hazed! Team Colleague Featured Poster

Me said to Mo, "Zao shang hao!".

nav33n 472 Purple hazed! Team Colleague Featured Poster

ton
son
nest

Interest

nav33n 472 Purple hazed! Team Colleague Featured Poster

fall

nav33n 472 Purple hazed! Team Colleague Featured Poster

-579

nav33n 472 Purple hazed! Team Colleague Featured Poster

Really strange. Its working for me. I ll attach the screenshot. :S So ? Who's fault is it ?

Edit: Check if you haven't accidently deleted the image files.

nav33n 472 Purple hazed! Team Colleague Featured Poster

You are welcome! Glad you solved your problem!

nav33n 472 Purple hazed! Team Colleague Featured Poster
$insert="INSERT INTO team('team')
VALUES ('$value')";
echo $insert;
mysql_query($insert);

Print your query. Execute the same in phpmyadmin or mysql. Check what's the error. Or you can give, mysql_query($insert) or die(mysql_error()); to know what is the error.

nav33n 472 Purple hazed! Team Colleague Featured Poster

I dont know! You should probably post this question in css forum !

nav33n 472 Purple hazed! Team Colleague Featured Poster

I changed.. I saw and I deleted.. So, its working.. Anyway, look closely.

body {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	background-image:  url(C:/xampp/htdocs/fab/images/bgmain.gif);
	margin: 0px;
}
td {
	font-size: 10px;
}
.navon {
	background-image:  url(C:\xampp\htdocs\fab\images\nav_on.gif);
	background-repeat: no-repeat;
	background-position: left;
	height: 23px;
	width: 152px;
	text-indent: 25px;
}


.bgmain {
	background-image:  url(C:\xampp\htdocs\fab\images\main_bg2.gif);
	background-repeat: repeat-x;
	height: 287px;
}
.loginbg {
	background-image:  url(C:\xampp\htdocs\fab\images\header_01.gif);
	background-repeat: no-repeat;
	height: 40px;
	width: 368px;
}
.navt1 {
	background-image:  url(C:\xampp\htdocs\fab\images\header_05.gif);
	height: 41px;
	width: 131px;
	font-size: 12px;
	font-weight: bold;
	color: #FFFFFF;
	text-align: center;
	padding-bottom:7px;
}
a:link {
	color: #000000;
	text-decoration: none;
}

.navt2 {
	background-image:  url(C:\xampp\htdocs\fab\images\header_06.gif);
	height: 41px;
	width: 129px;
	color: #FFFFFF;
	text-align: center;
	padding-bottom:7px;
	text-decoration: none;
	font-size: 12px;
	font-weight: bold;
}
.crbg {
	background-image:  url(C:\xampp\htdocs\fab\images\crbg.gif);
	height: 22px;
	padding-top: 2px;
	padding-bottom: 2px;
	font-weight: bold;
	color: #FFFFFF;
}

.navt3 {
	background-image:  url(C:\xampp\htdocs\fab\images\header_07.gif);
	height: 41px;
	width: 129px;
	font-size: 12px;
	font-weight: bold;
	color: #FFFFFF;
	text-align: center;
	padding-bottom:7px;
}
.navt4 {
	background-image:  url(C:\xampp\htdocs\fab\images\header_08.gif);
	width: 131px;
	height: 41px;
		font-size: 12px;
	font-weight: bold;
	color: #FFFFFF;
	text-align: center;
	padding-bottom:7px;
}
.navt5 {
	background-image:  url(C:\xampp\htdocs\fab\images\header_09.gif);
	width: 130px;
	height: 41px;
		font-size: 12px;
	font-weight: bold;
	color: #FFFFFF;
	text-align: center;
	padding-bottom:7px;
}
.navt6 {
	background-image:  url(C:\xampp\htdocs\fab\images\header_10.gif);
	height: 41px;
	width: 127px;
		font-size: 12px;
	font-weight: bold;
	color: #FFFFFF;
	text-align: center;
	padding-bottom:7px;
}
.mcbg {
	background-image:  url(C:\xampp\htdocs\fab\images\mcbg.gif);
	background-repeat: repeat-y;
	width: 779px;
	padding: 0px;
}
.navoff {
	background-image:  url(C:\xampp\htdocs\fab\images\nav_off.gif);
	text-indent: 20px;
	height: 23px;
	width: 152px;
	background-repeat: no-repeat;
	font-weight: bold;
}
.leftcolheader {
	background-image:  url(C:\xampp\htdocs\fab\images\left_box_head.gif);
	background-repeat: no-repeat;
	height: 26px;
	width: 151px;
	color: #FFFFFF;
	text-indent: 20px;
	padding-top: 6px;
}
.lcolbg {
	background-image:  url(C:\xampp\htdocs\fab\images\lcolmcbg.gif);
	background-repeat: repeat-y;
	width: 152px; …
nav33n 472 Purple hazed! Team Colleague Featured Poster

echo "<div class='error'>Text</div>"; If you want to use double quotes, you should escape those quotes. Eg. echo "<div class=\"error\">Text</div>";

nav33n 472 Purple hazed! Team Colleague Featured Poster

Dude, I didn't understand your first part. But here's the answer for your second part.

<?php
$url = 'http://www.directcosmetics.com/detail.cfm?code=15362';
$html = file_get_contents($url);
$reg = '/<td class=\"rrp\"><strong>RRP<\/strong>(.*)<strong>SAVE<\/strong>/s';
preg_match($reg,$html,$matches);
$rep_array=array("&pound;","|");
print str_replace($rep_array,"",$matches[1]);
?>

Cheers,
Naveen

nav33n 472 Purple hazed! Team Colleague Featured Poster

Exactly :P

nav33n 472 Purple hazed! Team Colleague Featured Poster
if(empty($_POST['username']) && empty($_POST['password'])) {
	echo "Both empty"; 
	exit;
} 
if(empty($_POST['username'])){
	echo "username empty!";
	exit;
} 
if(empty($_POST['pass'])){
	echo "pass empty!";
	exit;
}

First validate for both the fields. Then other fields.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Thats because, It will exit when it encounters first if(empty($_POST)).

nav33n 472 Purple hazed! Team Colleague Featured Poster
if($_POST['username']==""){
  echo "Username empty!";
} 
if($_POST['password']==""){
 echo "Password empty!";
}
if($_POST['username']=="" && $_POST['password']=="") {
 echo "Both username and password is empty!";
}

This will do the same as what you are trying to do.

nav33n 472 Purple hazed! Team Colleague Featured Poster

missing } after die function.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Whats the error ?
Oops! I am getting blind. Check if-elseif-else condition .

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb Taino!

nav33n 472 Purple hazed! Team Colleague Featured Poster

:) Welcome to Daniweb.. Please read the guidelines before posting!

nav33n 472 Purple hazed! Team Colleague Featured Poster

:) You are welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

:) You are welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

That doesn't check for blank. Try

if(empty($_POST['username'])){
   echo "Empty username!";
}
//or you can also do it this way
if($_POST['username']==""){
 echo "Empty username!";
}
nav33n 472 Purple hazed! Team Colleague Featured Poster

Start Loving Obscene Wonders ! :P

nav33n 472 Purple hazed! Team Colleague Featured Poster

Try out a simple mail function first. For eg,

<?php
$to="id@email.com";
$from="From: id2@email.com";
$subject="Test mail";
$body="This is a test mail";
mail($to,$subject,$body,$from);
?>

Check if you get a mail instantly. If you do, then the problem is not with the configuration but in this script(above script). If you don't get an email, then the problem might be with smtp server. Ask your administrator for smtp address and update your php.ini file.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Bore
coral
boar

Register

nav33n 472 Purple hazed! Team Colleague Featured Poster

ball

nav33n 472 Purple hazed! Team Colleague Featured Poster

Die
play
say

Treatment

nav33n 472 Purple hazed! Team Colleague Featured Poster

bell

nav33n 472 Purple hazed! Team Colleague Featured Poster

-571

nav33n 472 Purple hazed! Team Colleague Featured Poster

hmm.. IE7 has a lot of problems, i believe.
But, wont the dropdown be populated by the value which you give within option tag ? like, <option value="someurl1.php">Classic 1</option> . I mean, wouldn't it show classic 1 in the dropdown list ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

dig
side
sin

Amusement

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb Simon! Now thats a good intro :) !

nav33n 472 Purple hazed! Team Colleague Featured Poster
<?php
if(isset($_POST['team']))
{
	foreach($_POST['team'] as $value){
		$insert=mysql_query("INSERT INTO team('team') VALUES ('$value')");
	}
}
?>
<html>
<body>
<form method="post" action="chk123.php">
<input type="checkbox" name="team[]" value="AG"> Argentina <br />
<input type="checkbox" name="team[]" value="GE"> Germany <br />
<input type="checkbox" name="team[]" value="BR"> Brazil <br />
<input type="submit" name="submit" value="submit">
</form>
</body>
</html>

There! That will work :)

Cheers,
Naveen

Edit: The error was because, you had opened php tag but you opened it again.

nav33n 472 Purple hazed! Team Colleague Featured Poster
update members set members.sponsor_program_id=sponser.program_id where sponser.id_num=members.id_num;

This will update the members by setting sponser_program_id to the program_id of sponser when id_num of sponser is equal to id_num of members.

nav33n 472 Purple hazed! Team Colleague Featured Poster

But it works that way already in the live webpage.

I will try what you suggest but i don't think it will make any difference. The current live page is found at www.personally-yours.co.uk/onthisday.htm. This drop down is part of the input into the paypal ordering system.

That live page cannot be found. And nowhere I have seen a select box with 2 values. (sorry for my ignorance!)