landavia
-
Posts
140 -
Joined
-
Last visited
Never
Posts posted by landavia
-
-
please read text tag u type
<input type="text" width="30" name="userdate" /><
and read textarea
<textarea rows="4" cols="100" id="q1" /></textarea>
what the diferent betwen 2?
BLOCK this one have name but not the other one and "name" was not include in textarea^^
-
<form action="<?php echo $editFormAction; ?>" method="POST" name="form1" style="margin:0px;" > <table width="100%" border="0" cellspacing="0" cellpadding="1"> <?php // table 4 ?> <tr valign="baseline"> <td width="30%" height="20" align="left" class="lbtxt">Select Device : </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="1"> <?php for ($i=0;$i<sizeof($darr);$i++) { ?> <tr> <td width='25%'></td> <td width='75%' class='intxt' align='left'> <input type="checkbox" name="box[]" value="<?php echo $darr[$i];?>"><?php echo $narr[$i]; ?></td> </tr> <?php } // closing for loop ?> </table> <table width="100%" border="0" cellspacing="0" cellpadding="1"> <tr valign="baseline"> <td width="25%" height="20" align="right" class="lbtxt">Selection Criteria : </td> <td width="75%" height="20" class="intxt"> <input name="m_status" type="radio" value="a" checked> Available <input type="radio" name="m_status" value="p"> Pending</td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="1"> <tr valign="baseline" class="wntxt"> <td colspan=2 height="20" class="wntxt"> <?php echo "Note : ".$errmsg; ?></td> </tr> </table> <hr size="1" noshade class="whiteBox"> <?php // if (empty($errmsg)) { ?> <input type="submit" name="Submit" value="Go"> <?php // } ?> <input type="button" name="Submit" value="Return" onClick="window.history.back();"> <input type="button" name="Submit" value="Cancel" onClick="window.location='main-menu.php'"> <input type="hidden" name="MM_insert" value="form1"> </form></td>
here goes the neighood
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) { for ($i=0;$i<count($_POST['box']);$i++) { } }
why use count? use sizeof()
-
this id=wrap are css?
i don't see any css in ur page
and how about using other name.. or just add number after wrap
ex: wrap0
-
how about using same cms.. i would suggest JOMLAA
in jomlaa.. you only need to build template and you just to adjust the jomla (module and content)
-
hi there I tried 2 solve ur problem but ur code isnt clear so pls post the code again
<div align="center"><?php echo '<title>'.$site_title.' - Home</title> <table width="80%" > <tr valign="center"><div align="center"> <td class="windowbg" width="100%"> <table width="100%" cellspacing="1" cellpadding="4" border="0" class="border"> <td class="windowbg4"><center><img src="ico/sub10.gif"> <b>title here</b></td> </tr><tr> <td class="windowbg3"> <form action="index.php?action=login&sub=1" method="post"> <table width="100%" cellspacing="1" cellpadding="4" border="0"> <td class="windowbg" colspan="2"><br><br><center><font size="4" color="white"><b>text here</b></font></a><br><br>Server will be up in a few days 21 Jan 09.<br> </table> </form> </td> </tr><tr> <td class="windowbg3"><center><a href=http://www.mylink.com><b>Here</b></a> </tr> </table> <table width="100%" cellspacing="1" cellpadding="4" border="0" class="border"> <tr> <td class="windowbg4"><center><img src="ico/sub10.gif"> <b>title here</b></td> </tr><tr> <td class="windowbg3"> <form action="index.php?action=login&sub=1" method="post"> <table width="100%" cellspacing="1" cellpadding="4" border="0"> <td class="windowbg" colspan="2"><br><br><center><font size="4" color="white"><b>text here</b></font></a><br><br>Server will be up in a few days 21 Jan 09.<br> </table> </form> </td> </tr><tr> <td class="windowbg3"><center><a href=http://www.mylink.com><b>Here</b></a> </tr> </table> <center><table width="100%" cellspacing="1" cellpadding="4" border="0" class="border"> <tr> <td class="windowbg4"><center><img src="ico/sub10.gif"> <b>title here</b></td> </tr><tr> <td class="windowbg3"> <form action="index.php?action=login&sub=1" method="post"> <table width="100%" cellspacing="1" cellpadding="4" border="0"> <td class="windowbg" colspan="2"><br><br><center><font size="4" color="white"><b>text here</b></font></a><br><br>Server will be up in a few days 21 Jan 09.<br> </table> </form> </td> </tr><tr> <td class="windowbg3"><center><a href=http://www.mylink.com><b>Here</b></a> </tr> </table><div align="center"><table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr valign="center"> <td class="windowbg" width="100%"> <center><table width="100%" cellspacing="1" cellpadding="4" border="0" class="border"> <tr> <td class="windowbg4"><center><img src="ico/sub10.gif"> <b>title here</b></td> </tr><tr> <td class="windowbg3"> <form action="index.php?action=login&sub=1" method="post"> <table width="100%" cellspacing="1" cellpadding="4" border="0"> <td class="windowbg" colspan="2"><br><br><center><font size="4" color="white"><b>text here</b></font></a><br><br>Server will be up in a few days 21 Jan 09.<br> </table> </form> </td> </tr><tr> <td class="windowbg3"><center><a href=http://www.mylink.com><b>Here</b></a> </tr> </table> </td> </tr> </table>'; ?>
what a waste of time.. i don't want to answer too
let's solve this and lock the topic..
1 think i should say to TS..
i believe.. to many table HERE.. and You confuse for you own table?!!!
let's change subject.. instead using table
<table> <tr> <td>block 1</td> <td>block 2</td> <td>block 3</td> </tr> </table>
i have same problem and want to use div
<div> <div>Block 1</div> <div>Block 2</div> <div>Block 3</div> </div>
*i was see in wikipedia.. they only use DIV!!!
-
yap..
because of this
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link href="form.css" rel="stylesheet" type="text/css" /> <title>instruments.php</title> </head> <body> <link href="form.css" rel="stylesheet" type="text/css" />
the header not work.. u should try to not place HTML before the header.. or using ob_start()
-
that's version have something like auto addslashesPHP Version 5.2.5
how about try addslahes twice
*not recomended
-
wakakakaka.. i'm a fool.. in here..
if you laugh to me.. i will accept it
>>$pic_code = mysql_fetch_array($Photos);
this goes line before while($row=mysql_fetch_array($Photos))
and below is always repeating again and again..
TS should type this
<?php $CatID = $_REQUEST['CatID']; $Photos = mysql_query("SELECT ID, Title, ImageURL, CatID, Details FROM Photo WHERE CatID='$CatID'", $connection) or die("error querying database"); $rows_nb = mysql_num_rows($Photos); $pic_num = 0; $pic_code = mysql_fetch_array($Photos); echo '<table width="75%" border="0" align="center">'; while($row = mysql_fetch_assoc($Photos)) { $pic_code =$row; //wakakaka... this is the problem echo '<tr>'; for ($tb_rows=0;$tb_rows<3;$tb_rows++) { if ($pic_num < $rows_nb) { echo '<td><div align="center"><img src="'.$pic_code['ImageURL'] .'" border="1" /></div></td>'; $pic_num++; }else{ echo '<td></td>'; } } echo '</tr>'; } echo '</table>'; ?>
i think i know what TS want.. but the above replies is the correct ^^
-
i suspect.. PHP versionDon't using addslashes. Use htmlentities on the way into your db and you won't have this problem at all.
That may be an option, but still doesn't answer my question. Why isn't addslashes working?
are u use PHP 4 or 5.. and if able the version detail
(4.2.3???)
-
no.. that would be same as BOMB MAIL if you do that..I have a database file with about 10k email addresses. Is it good to have a php program to scan through the database 1 record at a time and do the mail() for each record? Is there a better way to do this?
Regards,
DED
but if the reason are reasonable.. that's perhaps do
-
are you tried mysql_error()? i believe there an error ^^
i know the error
>>"delete from classifieds where ref='$id'"
u should type
"delete from classifieds where ref='$_POST[id]'"
-
just add above
u should try to split the code.. don't make as long as train
it hard to read and debug u know
-
ooo sory..
i think this is server problem or config on server problem
-
>>well really if this works
well.. if you ask if this work.. i'm not try it
but i positif what i type worked.. perhaps there another way to solve it?
-
plz type line 8-10 instruments.php
and line 700-705 functions.php
-
he mean... someone will..or might inject your url..
i don't know how.. but better prepare.. and take the advise
-
and what the problem
sry.. english is not my primary languages
>>header("location:thankyou.html");
is thankyour.html exits?
and plz.. add exit() after the header like this
header("location:thankyou.html"); exit();
-
wait a moment..the above script supplied sorta worked in a way that it would display the messages, but not when they should've. Also if the users renewal date wasn't within the time period, it also displayed a message that couldn't redo headers
Just prior to getting a notification of the script you had provided, I got this to work, and it works EXCEPT that on first login, doesn't display the message until the user clicks another link
<?
$todays_date = date("Y-m-d");
if ($todays_date == $euRenewal)
{ echo "Your membership renewal is due TODAY!"; }
?>
So that seems relatively basic, just need the 30 days before and after and then 31 days after expired, so where can the snippet above go to help?
i convert the date into integer.. and that's make everything easy i think
what the next problem?
-
how about.. parse all using csv and try fix from the csv..
is wise to replace outside the DB than from the DB itself
-
>>ISP apache server....
ISP?
Apache?
try only one PLZZ..
i believe this server problem not pHP problem
-
err.. just because PLAY ur script not work?
what editor u use.. I use Crimson Editor.. perhaps that's help you.
btw.. you should use comment a lot.. since you will handle many things & human brain have their limit
-
to avoid that..Personally, I'd use both - so that there is graceful degradation if the user has javascript turned off.
plz add <noscript>.....</noscript> to warn user for shown/active java
-
i believe this is already solve.. what should we disscus again?
-
i realy need see the source..
i think the problem not in galery but in photo or the logic
[SOLVED] Headers already sent - wierd issue with local/remote
in PHP Coding Help
Posted
perhaps.. in htconfig (server config).. something uncheck/deactive?