Goto Page: 1, 2, 3, 4, 5, 6, 7, 8
Actual Results
- fional24
- Forum: Programming / Scripting / Coding Forum
- Topic: Am I using preg_match_all() correctly?
- Subject: Am I using preg_match_all() correctly?
- Replies: 8
- Views: 1344
Posted: February 22nd, 2006, 4:02 am
Fee
- fional24
- Forum: Programming / Scripting / Coding Forum
- Topic: PHP including file name variable
- Subject: PHP including file name variable
- Replies: 4
- Views: 739
- Subject: PHP including file name variable
Posted: February 21st, 2006, 2:01 pm
Thanks, I'll go take a look at those and see what I come up with. Loads more questions probably! But it's all good learning experience...
- fional24
- Forum: Programming / Scripting / Coding Forum
- Topic: PHP including file name variable
- Subject: PHP including file name variable
- Replies: 4
- Views: 739
- Subject: PHP including file name variable
Posted: February 21st, 2006, 7:25 am
Update: I've got this to work, but I need a little help refining this. I'm using PHP_SELF to pick up the page name which gives me:
Having the / infront of the filename was what I think was giving giving me problems, so my current solution is to have: [code] <?session_st...
Code: [ Select ]
/name.php
- fional24
- Forum: Programming / Scripting / Coding Forum
- Topic: PHP including file name variable
- Subject: PHP including file name variable
- Replies: 4
- Views: 739
- Subject: PHP including file name variable
Posted: February 21st, 2006, 5:31 am
I'm probably going to kick myself when I find out the answer to this! :D I have a filename saved in a session variable. I want to access this via PHP include function. I think the code will be something along the lines of: [code]<?session_start(); $page=$_SESSION['page']; include&...
- fional24
- Forum: Programming / Scripting / Coding Forum
- Topic: Am I using preg_match_all() correctly?
- Subject: Am I using preg_match_all() correctly?
- Replies: 8
- Views: 1344
Posted: February 17th, 2006, 11:09 am
- fional24
- Forum: Programming / Scripting / Coding Forum
- Topic: Am I using preg_match_all() correctly?
- Subject: Am I using preg_match_all() correctly?
- Replies: 8
- Views: 1344
Posted: February 17th, 2006, 10:34 am
Thanks for quick reply and improved code! So, just to clear things in my head so i'll know this for next time, what is the difference between "content-type" and [content-type] when used in an expression this way? does "content-type" look for that phrase and [content-type] look fo...
- fional24
- Forum: Programming / Scripting / Coding Forum
- Topic: Am I using preg_match_all() correctly?
- Subject: Am I using preg_match_all() correctly?
- Replies: 8
- Views: 1344
Posted: February 17th, 2006, 8:33 am
I want the program to exit if the strings are found. The variables are coming from a text box on a form and I'm trying to make sure that headers can't be injected via the form, in terms of inserting bcc and cc to send out spam. This has happend to me already and I'm not going to let it happen again!...
- fional24
- Forum: Programming / Scripting / Coding Forum
- Topic: Am I using preg_match_all() correctly?
- Subject: Am I using preg_match_all() correctly?
- Replies: 8
- Views: 1344
Posted: February 17th, 2006, 2:37 am
I've been having a few issues this week with bad people messing about with my php form scripts. So, I'm adding more validation in to make things more secure. This is a portion of my script where I am trying to make sure that if content-type, bcc: or cc: are submitted in my text box, then my script w...
- fional24
- Forum: Programming / Scripting / Coding Forum
- Topic: MySQL/PHP Lookup
- Subject: MySQL/PHP Lookup
- Replies: 11
- Views: 823
- Subject: MySQL/PHP Lookup
Posted: February 8th, 2006, 4:11 am
Thanks, that looks great. It's exactly the start that I need.
Thanks,
Fee
Thanks,
Fee
- fional24
- Forum: Programming / Scripting / Coding Forum
- Topic: MySQL/PHP Lookup
- Subject: MySQL/PHP Lookup
- Replies: 11
- Views: 823
- Subject: MySQL/PHP Lookup
Posted: February 7th, 2006, 6:51 am
Yeh, that's the type of thing. The function of the list will be to identify products names. So for example, instead of the person filling in the form having to remember that product #67 is an apple, the drop down list will use the product id number to look up the product name and display that in the...
- fional24
- Forum: Programming / Scripting / Coding Forum
- Topic: MySQL/PHP Lookup
- Subject: MySQL/PHP Lookup
- Replies: 11
- Views: 823
- Subject: MySQL/PHP Lookup
Posted: February 6th, 2006, 7:49 am
I'm trying to do a google search for some script/a tutorial which will help me create a drop down box on an HTML form. This drop-down will look up the values in a MySQL table then return the results to the form. I'm not sure I'm explaining it properly, I'm basically trying to achieve the same result...
- fional24
- Forum: Programming / Scripting / Coding Forum
- Topic: MySQL question
- Subject: MySQL question
- Replies: 10
- Views: 499
- Subject: MySQL question
Posted: November 11th, 2005, 2:49 am
PHP Freaks also have some good tutorials and examples of PHP/MYSQL
http://www.phpfreaks.com/
http://www.phpfreaks.com/
- fional24
- Forum: Programming / Scripting / Coding Forum
- Topic: MySQL question
- Subject: MySQL question
- Replies: 10
- Views: 499
- Subject: MySQL question
Posted: November 11th, 2005, 2:31 am
Before you jump in and learn mysql, i recommend you find out a bit about database design first. That way, when you come to mysql things will make a lot more sense! I just had a quick look on google for "relational database design tutorial" and came up with this: http://www.visualcase.com/tutorials/d...
- fional24
- Forum: Programming / Scripting / Coding Forum
- Topic: PHP Problems.
- Subject: PHP Problems.
- Replies: 2
- Views: 373
- Subject: PHP Problems.
Posted: November 3rd, 2005, 3:00 am
You need to save your file as a .php file for your code to work. If you save it as HTML, then your code will not be parsed.
- fional24
- Forum: Website Design Forum
- Topic: <fieldset></fieldset>
- Subject: <fieldset></fieldset>
- Replies: 2
- Views: 652
- Subject: <fieldset></fieldset>
Posted: November 3rd, 2005, 2:50 am
Thanks for your help. Looking at the bottom of the article, it was created in 1998! But it's good to know that it is supported now. I work for a college so that means that any web-based materials we produce have to be accessible as possible. So this will be a good feature to add to our forms I think.
