Forum: PHP Jan 17th, 2005 |
| Replies: 4 Views: 4,014 Thanks everyone for your suggestions.
Will have a mess about with what you all posted and see if i can make it work :)
Cheers,
JameZ |
Forum: PHP Jan 17th, 2005 |
| Replies: 6 Views: 7,522 hehehe yeah never thought about it like that. Yeah print_r() is very useful for displaying what a variable holds - especially arrays and the $_POST variable.
I managed to fix the code and it all... |
Forum: PHP Jan 14th, 2005 |
| Replies: 6 Views: 7,522 ReDuX:
Yeah thats exactly what i want to do but the code you provided will only check a specifically defined field....i.e. the first_name that you put in the code.
That works but its not exactly... |
Forum: PHP Jan 12th, 2005 |
| Replies: 6 Views: 7,522 Just a little extra point...
The script needs to be done this way as the required fields need to be defined in one place (config.php).
Thanks,
JameZ ;) |
Forum: PHP Jan 12th, 2005 |
| Replies: 6 Views: 7,522 The form (form.htm) posts a value from a text box (id='first_name') into a script (test.php) that checks the data entered. The script takes an array of required fields from a config file (config.php)... |
Forum: PHP Jan 12th, 2005 |
| Replies: 4 Views: 3,386 hehehe....yeah a lot easier to remember. Its just i have 2 EXCELLENT books that i have learnt PHP from but neither of them mention $_POST....when i found out that it was a replacement for HTTP... i... |
Forum: PHP Jan 12th, 2005 |
| Replies: 2 Views: 6,242 niiiice :)
Thanks so much!!
JameZ |
Forum: PHP Jan 12th, 2005 |
| Replies: 2 Views: 6,242 Have a look at the following code. It is the only thing in the file...the following variables are defined outside the php file:
$required
$first_name
require_once("config.php");
if... |
Forum: PHP Jan 12th, 2005 |
| Replies: 4 Views: 3,386 I think i know what this is now....is it a replacement for the $HTTP_POST_VARS function?
Basically it stores the data from a form that has been submitted with the post action. Is that right?
J |
Forum: PHP Jan 12th, 2005 |
| Replies: 4 Views: 3,386 Hi guys,
I have been looking at various form processing scripts, bascially to gain some understanding of how they work.
I have managed to work through one section apart from one bit. I keep... |
Forum: PHP Jan 12th, 2005 |
| Replies: 5 Views: 17,731 :lol: So simple when you think about it...Thanks so much :)
JameZ |
Forum: PHP Jan 10th, 2005 |
| Replies: 5 Views: 17,731 Hey,
Does anyone know how to pass a php variable into a form field? I want to reproduce what the user typed into a text box in another text box. Is this even possible?
Thanks,
JameZ ;) |
Forum: PHP Jan 10th, 2005 |
| Replies: 4 Views: 4,014 Hi guys....newbie on the forums here :)
I have developed a php form processor for a project i am working on. I am trying to validate the email address, however i want to add 1 more check the the... |