Search found 11 matches

by nevodj
Sun Aug 10, 2014 5:17 pm
Forum: PHP coding => General
Topic: Import Data - Remove Records - Export Data
Replies: 1
Views: 383

Import Data - Remove Records - Export Data

Hello, I am a bit of a newbie to php but I am wondering the best way to achieve this and would be glad of any tips. I want a php page where I can import a CSV or paste into a multiline box, then push a button which checks each imported line against a mysql database "blacklist" and removes any record...
by nevodj
Tue Apr 09, 2013 10:54 pm
Forum: PHP coding => General
Topic: Getting selected checkboxes from a list into an array
Replies: 10
Views: 1669

Re: Getting selected checkboxes from a list into an array

Great, I got it to work using your example. Small error in my code. This is the output from post.php Your array: Array ( [0] => img1.jpg [1] => img2.jpg [2] => img3.jpg [3] => img4.jpg [4] => img5.jpg ) Just wondering - to improve this further, is there a way in php that rather than having checkboxe...
by nevodj
Tue Apr 09, 2013 10:43 pm
Forum: PHP coding => General
Topic: Getting selected checkboxes from a list into an array
Replies: 10
Views: 1669

Re: Getting selected checkboxes from a list into an array

Thanks for your help... think this is a bit over my head :(
by nevodj
Tue Apr 09, 2013 10:32 pm
Forum: PHP coding => General
Topic: Getting selected checkboxes from a list into an array
Replies: 10
Views: 1669

Re: Getting selected checkboxes from a list into an array

Thanks

I left of the html head of the post.php to save space on the post thats why it was only 3 lines

I dont understand the 2nd piece of code you have there... is that to go in index.php or post.php?
by nevodj
Tue Apr 09, 2013 10:05 pm
Forum: PHP coding => General
Topic: Getting selected checkboxes from a list into an array
Replies: 10
Views: 1669

Re: Getting selected checkboxes from a list into an array

Hello, Thanks for your help. So this is my code now in index.php <?php //path to directory to scan $directory = "../"; //get all image files with a .jpg extension. $images = glob($directory . "*.jpg"); echo "<form action='post.php' method='post' name='images'>"; //print each file name foreach($image...
by nevodj
Tue Apr 09, 2013 9:20 pm
Forum: PHP coding => General
Topic: Getting selected checkboxes from a list into an array
Replies: 10
Views: 1669

Getting selected checkboxes from a list into an array

Hello, This is probably a dumb question from a php newbie I am using this code to generate a list of files in a folder, with a checkbox next to each name. <?php //path to directory to scan $directory = "../"; //get all image files with a .jpg extension. $images = glob($directory . "*.jpg"); //print ...
by nevodj
Thu Oct 04, 2012 1:49 am
Forum: PHP coding => General
Topic: PDF file
Replies: 1
Views: 691

Re: PDF file

You're on the wrong forum. :offtopic:
by nevodj
Thu Oct 04, 2012 1:37 am
Forum: PHP coding => General
Topic: ECHO $_GET INTO INPUT FIELD
Replies: 3
Views: 1107

ECHO $_GET INTO INPUT FIELD

Hello, Can someone tell me what is wrong with this code? THE WID input box just shows <?php echo $_GET["sessionid"]; ?> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ...
by nevodj
Mon Aug 27, 2012 8:48 pm
Forum: PHP coding => General
Topic: PHP To create ICS file
Replies: 1
Views: 708

PHP To create ICS file

Hello, Hoping someone can help me. I found this code http://www.phphelptutorials.com/development/adding-events-to-microsoft-outlook-from-php-using-ical/ But I am wondering how to make it create the calendar appointment so it is always at 0600 for every visitor, no matter where they are in the globe....
by nevodj
Thu Jun 21, 2012 5:52 pm
Forum: PHP coding => General
Topic: PHP Redirect to variable from URL
Replies: 3
Views: 6846

Re: PHP Redirect to variable from URL

Thank you!!
by nevodj
Thu Jun 21, 2012 3:47 pm
Forum: PHP coding => General
Topic: PHP Redirect to variable from URL
Replies: 3
Views: 6846

PHP Redirect to variable from URL

Hello, I'm new to the forum, and pretty new to PHP, just wondering if someone could help me with this. I want to redirect the URL www.example1.com/redirect.php?redir=www.example2.com to www.example2.com This is my code in redirect.php <?php $headerloc = $_GET["redir"] header('Location: '.$headerloc)...