Results 1 to 7 of 7
-
25th Apr 2010, 04:09 PM #1OPMemberWebsite's:
maxneeds.infoOne source var - how to split?
Guys i have the following problem.
I made 2 buttons below each entry.
Working & Not Working.
When working button is clicked,a file named wknwk.html is saved in the place for current entry.But instead of that it saves the wknwk.html file in last 5 entries. Here some code
Code:$admin = $_SESSION[ fulladmin ]; if ($admin == yes ) { $str = $str . '<form method="POST"> <input class=submit type="submit" name="z3" value="Working"> <input class=submit type="submit" name="z3" value="Not Working"> </form>' ;} if(isset($_POST['z3'])) { $wknwk = $_POST['z3']; if ($wknwk=="Working"){$wknwk="Last checked : <font color=green>" . date("d/m/Y") . "</font>";} else {$wknwk="<font color=red>Dead link/s !</font>";} } $myfile = $comment_trackback_base.'wknwk.html'; $fh = fopen($myfile, 'w') or die("Having problems right now..."); fwrite($fh, $wknwk); fclose($fh);
Code:$comment_trackback_base = CONTENT_DIR.$y.'/'.$m.'/'.$entry.'/';
Thanks.
I need explode or something ?Porsche_maniak Reviewed by Porsche_maniak on . One source var - how to split? Guys i have the following problem. I made 2 buttons below each entry. Working & Not Working. When working button is clicked,a file named wknwk.html is saved in the place for current entry.But instead of that it saves the wknwk.html file in last 5 entries. Here some code $admin = $_SESSION; if ($admin == yes ) { $str = $str . '<form method="POST"> <input class=submit type="submit" name="z3" value="Working"> <input class=submit type="submit" name="z3" value="Not Working"> Rating: 5
-
26th Apr 2010, 11:10 AM #2OPMemberWebsite's:
maxneeds.infosomeone ?
-
26th Apr 2010, 12:02 PM #3MemberWebsite's:
epicimagehost.comtry changing
$comment_trackback_base = CONTENT_DIR.$y.'/'.$m.'/'.$entry.'/';
to
$comment_trackback_base = CONTENT_DIR.&$y.'/'.&$m.'/'.&$entry.'/';
Not sure tho as i'm quite noobish myself
what it does:
http://www.whypad.com/posts/php-what...variables/193/
-
26th Apr 2010, 12:21 PM #4OPMemberWebsite's:
maxneeds.infoIt gives unexpected '&' ...
-
26th Apr 2010, 01:26 PM #5MemberWebsite's:
epicimagehost.comtry replacing
$myfile = $comment_trackback_base.'wknwk.html';
with
$myfile = CONTENT_DIR.$y.'/'.$m.'/'.$entry.'/wknwk.html';
If it still happens try to echo the location
( echo CONTENT_DIR.$y.'/'.$m.'/'.$entry.'/wknwk.html';exit; )
-
27th Apr 2010, 12:26 PM #6OPMemberWebsite's:
maxneeds.infoNo man thats not the problem...
Maybe when 1 button is clicked ... all buttons are clicked ,because they all are with same 'name' ?
And thats why it sends wknwk.html to all directories instead of the clicked one ?
-
30th Apr 2010, 03:00 AM #7Respected Member
Are there multiple lines of buttons working/not working with different entries?
Without seeing the form it is pure guessing what you are trying to do?
In the code shown it does not show how entry is being defined and stored.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Split the hosting up.
By GeeZus in forum Feedback and SuggestionsReplies: 1Last Post: 13th Jun 2012, 01:44 PM -
Study finds open source is slightly better than closed source software
By ShareShiz in forum News & Current EventsReplies: 1Last Post: 29th Feb 2012, 04:41 AM -
does a streaming vid need to be split
By jetli68 in forum Tutorials and GuidesReplies: 2Last Post: 23rd Dec 2011, 12:00 PM -
Split avi
By zoug100 in forum General DiscussionReplies: 2Last Post: 20th Dec 2011, 05:40 PM -
How to split vps space ??
By shufol in forum Technical Help Desk SupportReplies: 2Last Post: 6th Nov 2010, 07:00 PM
themaPoster - post to forums and...
Version 5.35 released. Open older version (or...