tarun
-
Posts
321 -
Joined
-
Last visited
Never
Posts posted by tarun
-
-
I Dont Think Its IE7 Beacuse I Just Ran A Simple Test In My IE7 Browser
And Everything Seems Fine
Have You Got A Link To That Page So I Can Test?
-
By The Way What Did You Change Because It Still Doesn't Work
Any More Help
Thnx,
Tarun
-
Ive Had Previous Help With This But Now Theres ANOTHER Problem:
The Form Wont Submit - Why?
Please Help Me Thnx
Heres My Source Code
<?php $addform = "<form name='addvideo' action='$PHP_SELF' method='post'> Video URL:<BR><input type='text' name='url' size='40'> <br>Video Description:<br><textarea rows='10' cols='30' name='desc'></textarea><br></form> <input type='submit' value='Submit'>"; echo "$addform"; if (isset($_POST['Submit'])) { $url = $_POST['url']; $desc = $_POST['desc']; if(empty($url)){ echo "Please Specify The URL Of The Video<br>"; } elseif(empty($desc)){ echo "Please Specify A Description Of The Video<br>"; } else{ $newcontent = "<videos> <video url='$url' desc='$desc' /> </videos>"; $previouscontent = file_get_contents("videoplaylist.xml"); $openfile = fopen("videoplaylist.xml", "w"); $totalfile = $previouscontent.$newcontent; fwrite($openfile, $totalfile); fclose($openfile); echo "File Added To Playlist<br><br>Add A New File?<br>$addform"; } } ?>
-
Oh Sorry I Just Posted When You Were Editing
And Thnx I Always Make Some Stupid Mistake Like That - DER HOW DUMB
THANKS
-
Parse error: parse error, unexpected T_ECHO in /home/www/**********/**********.php on line 10
Thnx,
Tarun
-
This A Quick Bit Of PHP Code Which I Have Just QUICKLY Made For Another PHP Freaks Forums User
Can You Please Check Through It - It Is Currently Outputting An Error!
<?php $addform = '<form action="$PHP_SELF" method="post"> Video URL:<BR><input type="text" name="url" size="40"> <br>Video Description:<br><textarea rows="10" cols="30" name="desc"></textarea><br></form> <input type="submit" value="Add Video">' echo '$addform'; if (isset($_POST['Submit'])) { $url = $_POST['url']; $desc = $_POST['desc']; if(empty($url)){ echo 'Please Specify The URL Of The Video<br>'; } elseif(empty($desc)){ echo 'Please Specify A Description Of The Video<br>'; } else{ $newcontent = '<videos> <video url="$url" desc="$desc" /> </videos>'; $previouscontent = file_get_contents("videoplaylist.xml"); $openfile = fopen("videoplaylist.xml", "w"); $totalfile = $previouscontent.$newcontent; fwrite($openfile, $totalfile); fclose($openfile); echo 'File Added To Playlist<br><br>Add A New File?<br>$addform'; } } ?>
Thnx,
Tarun
-
I Would Have Thought The Inner_Function
But Try A Few Tests
-
Too Be Honest I Cant Be Bovered To Check Your Code But Check This Sticky
-
Confused? ???
What Do You Mean
-
Excellent Thnx
TOPIC SOLVED
-
Thnx Every1
I Really Appreciate It
-
-
-
My Website Has A PM (PrivateMessaging) System
It Will Use Arrays And The PMs Are Stored In: msgs/$user.php
And Access Using: include("msgs/$user.php");
<?php $msg = array( 'MsgTitle1'=>array( 'From1', 'MsgBody1', 'TimeReceived1' ), 'MsgTitle2'=>array( 'From2', MsgBody2', 'TimeReceived2' ), 'MsgTitle3'=>array( 'From3', 'MsgBody3', 'TimeReceived3' ) ); ?>
What What The send.php, inbox.php, delete.php Page Look Like
In Other Words How Do I View All The Array Contents (foreach?) And Delete And Add To The Array
Thnx,
Tarun
-
1 Question Whats A Multi Dimensional Array?
-
This Is A Shopping Cart Ive Found
At The Moment You Can Only Have 1 Of Each Item
How Could I Get It So That Theres A Seperate Input Box With The Quatinty Next To Each Check Box
<script language="JavaScript"> <!-- hide contents from old browsers var Cost, GST, PST, Grand_Total; function tally() { Cost = 0; if (document.orderform.Item1.checked) { Cost = Cost + 26.15; } if (document.orderform.Item2.checked) { Cost = Cost + 26.10; } if (document.orderform.Item3.checked) { Cost = Cost + 26; } if (document.orderform.Item4.checked) { Cost = Cost + 26; } if (document.orderform.Item5.checked) { Cost = Cost + 26.44; } if (document.orderform.Item6.checked) { Cost = Cost + 26.01; } if (document.orderform.Item7.checked) { Cost = Cost + 26; } if (document.orderform.Item8.checked) { Cost = Cost + 26; } if (document.orderform.Item9.checked) { Cost = Cost + 25; } GST = (Cost * 0.07); PST = (Cost * 0.07); Cost = pound(Cost); GST = pound(GST); PST = pound(PST); Grand_Total = parseFloat(Cost) + parseFloat(GST) + parseFloat(PST); Grand_Total = pound(Grand_Total); document.orderform.Total.value = "£" + Cost; document.orderform.GST.value = "£" + GST; document.orderform.PST.value = "£" + PST; document.orderform.GrandTotal.value = "£" + Grand_Total; } function pound (amount) { amount = parseInt(amount * 100); amount = parseFloat(amount/100); if (((amount) == Math.floor(amount)) && ((amount - Math.floor (amount)) == 0)) { amount = amount + ".00" return amount; } if ( ((amount * 10) - Math.floor(amount * 10)) == 0) { amount = amount + "0"; return amount; } if ( ((amount * 100) - Math.floor(amount * 100)) == 0) { amount = amount; return amount; } return amount; } //--> </script> <body bgcolor="#ffe4c4" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> <center><h1>Shopping Cart</h1></center> <form method="post" name="orderform" action="mailto:me@mydomain.com" enctype="text/plain""> <table border="0"> <tr><td colspan="4"> <p><input type="checkbox" name="Item1" value="Item1_chosen" onclick="tally()"> Item One (£26.15) <p><input type="checkbox" name="Item2" value="Item2_chosen" onclick="tally()"> Item Two (£26.10) <p><input type="checkbox" name="Item3" value="Item3_chosen" onclick="tally()"> Item Three (£26) <p><input type="checkbox" name="Item4" value="Item4_chosen" onclick="tally()"> Item Four (£26) <p><input type="checkbox" name="Item5" value="Item5_chosen" onclick="tally()"> Item Five (£26.44) <p><input type="checkbox" name="Item6" value="Item6_chosen" onclick="tally()"> Item Six (£26.10) <p><input type="checkbox" name="Item7" value="Item7_chosen" onclick="tally()"> Item Seven (£26) <p><input type="checkbox" name="Item8" value="Item8_chosen" onclick="tally()"> Item Eight (£26) <p><input type="checkbox" name="Item9" value="Item9_chosen" onclick="tally()"> Item Nine (£25) </td></tr> <tr> <td> Total <input type="text" name="Total" value="£0" size="7"></td> <td> PST (7%) <input type="text" name="PST" value="£0" size="6"></td> <td colspan="2"> GST (7%) <input type="text" name="GST" value="£0" size="6"></td> </tr> <tr> <td> Grand Total <input type="text" name="GrandTotal" value="£0" size="8"></td> </tr> <tr> <td>Company Name:</td> <td colspan="3"><input type="Text" name="Company" size="35" maxlength="40"></td> </tr> <tr> <td>Contact Name:</td> <td colspan="3">First <input type="Text" name="FirstName" size="15" maxlength="20"> Last <input type="Text" name="LastName" size="15" maxlength="20"></td> </tr> <tr> <td>Address</td> <td><input type="Text" name="Street" size="20" maxlength="40"></td> </tr> <tr> <td>City</td> <td><input type="Text" name="City" size="20" maxlength="20"> </td> <td>Province/State:</td> <td><input type="Text" name="Province" size="20" maxlength="40"></td> </tr> <tr> <td>Country:</td> <td><input type="Text" name="Country" size="20" maxlength="20"></td> <td>Code:</td> <td><input type="Text" name="Code" size="9" maxlength="10"></td> </tr> <tr> <td>Phone:</td> <td><input type="Text" name="Area" size="3" maxlength="5"> <input type="Text" name="Phone" size="8" maxlength="10"></td> <td>Fax:</td> <td><input type="Text" name="AreaFax" size="3" maxlength="5"> <input type="Text" name="Fax" size="8" maxlength="10"></td> </tr> <tr> <td>Email Address:</td> <td colspan=2><input type="Text" name="Email" size="30" maxlength="30"></td> </tr> <tr><td colspan="4" height="3"><hr></td></tr> <tr><td colspan="2" align="center"><input type="Submit" value="Send Order"></td> <td colspan="2" align="center"><input type="RESET" value="Reset Order"></td></tr> </table> </form>
-
(RollEyes)
LoL
-
Oh... Thnx,
That Must Have Been When I Was Experimenting With Colours
-
My CSS Code For Links:
a:link { color: #0000FF text-decoration: none; font-size: 16px; font-weight: bold; } a:visited { color: #0000FF text-decoration: none; font-size: 16px; font-weight: bold; } a:hover { color: #0000FF text-decoration: none; font-size: 16px; font-weight: bold;; } a:active { color: #0000FF text-decoration: none; font-size: 16px; font-weight: bold; }
But.... It Turns Out Like There Is No CSS
Look Heres A Piccy
-
This:
<?php $dir = "/etc/php5/"; // Open a known directory, and proceed to read its contents if (is_dir($dir)) { if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { echo "filename: $file : filetype: " . filetype($dir . $file) . "\n"; } closedir($dh); } } ?>
Should List The Directory Contents And A Few Peices Of Info About Each File
-
Whats The 'Random Thing'
Can You Include A Pic Which Has A Kind Of Circle Surrounding The 'Problem' Area
-
My Theory: Mayby Because Theres So Much Comment That The Page Fails To Load Because Its Such A Big
-
...Well You Could Mayby Use The DIV And Float
Check This Out:
-
How About The CSS Forums Or The HTML Forums
[SOLVED] My Form Doesn't Work...
in PHP Coding Help
Posted
I Found The Problem
<br>Video Description:<br><textarea rows='10' cols='30' name='desc'></textarea><br></form>
<input type='submit' value='Submit' name='Submit'></form>";
There Were Two /form Tags