Search found 9 matches

by RonniMallouk
Sun Dec 04, 2011 6:44 am
Forum: PHP coding => General
Topic: Send file from website directory
Replies: 2
Views: 483

Re: Send file from website directory

google "Sending File Attachment PHP Mail" 1st Result PHP.net manual for mail function 2nd Result Didnt look at 3rd Result Uses PEAR http://www.html-form-guide.com/email-form/php-email-form-attachment.html Or i found this on the 4th Result $my_file = "somefile.zip"; $my_path = $_SERVER['DOCUMENT_ROO...
by RonniMallouk
Sun Dec 04, 2011 6:10 am
Forum: PHP coding => General
Topic: Send file from website directory
Replies: 2
Views: 483

Send file from website directory

Hi guys, I have a file in my website directory the i want to be able to send using the mail function the be recieved as an attachment. the file path for this is "cache.html" ive tried fopen function but all i get is the code for the html page that shows up as the message i want to be able to send it...
by RonniMallouk
Sun Dec 04, 2011 4:09 am
Forum: PHP coding => General
Topic: POST Array and Retrieving each value from form.
Replies: 7
Views: 920

Re: POST Array and Retrieving each value from form.

From PHP.net -- use it it has by far the best documented anything around. Its better than my books that document PHP. <?php // The message $message = "Line 1\nLine 2\nLine 3"; // In case any of our lines are larger than 70 characters, we should use wordwrap() $message = wordwrap($message, 70); // S...
by RonniMallouk
Fri Dec 02, 2011 11:44 pm
Forum: PHP coding => General
Topic: Best editor for PHP
Replies: 204
Views: 168016

Re: Best editor for PHP

I am looking for the best editor to code PHP with. I run a windows shop and need syntax highlighting. Whatever info you can give would be great. Thanks :lol: :lol: Notepad plus plus I also use Notepad Plus Plus, Its really good, Though it doesnt show me errors while im typing like Dreamweaver does....
by RonniMallouk
Fri Dec 02, 2011 11:35 pm
Forum: PHP coding => General
Topic: POST Array and Retrieving each value from form.
Replies: 7
Views: 920

Re: POST Array and Retrieving each value from form.

OK, so what you need to do is create a single form. Move the form element above the while ($row = ) loop.. this way you have one form. The next thing you need to do is pretty simple. You have an ID, you have a piece of merchandise. So you can either create a single table for the entire while loop, ...
by RonniMallouk
Fri Dec 02, 2011 4:07 pm
Forum: PHP coding => General
Topic: POST Array and Retrieving each value from form.
Replies: 7
Views: 920

Re: POST Array and Retrieving each value from form.

Well, you have a couple of very large problems with your script.. The first being that you are repeating the same form over and over, so when you do hit Submit, it really only cares about the last one created. So you should either move the form tag above the while () loop, or find a way to incorpor...
by RonniMallouk
Fri Dec 02, 2011 9:45 am
Forum: PHP coding => General
Topic: POST Array and Retrieving each value from form.
Replies: 7
Views: 920

POST Array and Retrieving each value from form.

Hi Guys, I have a page that has a while loop displaying a list of products from a database, im new to PHP and this is my very first PHP website. Each product has multiple text fields that represent each product size for users to input desired sizes <?PHP $sql = "SELECT * FROM merchandise ORDER BY su...
by RonniMallouk
Tue Nov 08, 2011 5:50 am
Forum: PHP coding => General
Topic: I NEED HELP PLZ
Replies: 1
Views: 487

Re: I NEED HELP PLZ

Hey thanks for that, is it possible to have a small text box instead of those arrows to change qty amount. i want the qty numbers to be able to show up on the next page like a review order page so that finally it can be all send to around 3 emails.
by RonniMallouk
Mon Nov 07, 2011 4:06 pm
Forum: PHP coding => General
Topic: I NEED HELP PLZ
Replies: 1
Views: 487

I NEED HELP PLZ

Hi, im making a website for a customer using php, we normally dont make these websites here i just normally use frontpage to make basic normal html websites. I have a customer who wants to make an ordering form for his products that he wants to sell, he doesnt want it to be like a shopping cart, he ...