That's what I thought. I just assumed that it would show me the IP address of the machine itself (which is completely different from the 127....).
Looks like this problem is solved!!
Thanks so much for your time and patience.
Jeff
Search found 12 matches
- Thu Mar 20, 2003 6:55 am
- Forum: PHP - Code
- Topic: Relative Paths & Document Root
- Replies: 8
- Views: 1538
- Thu Mar 20, 2003 6:20 am
- Forum: PHP - Code
- Topic: Relative Paths & Document Root
- Replies: 8
- Views: 1538
Tried this -> $_SERVER['SERVER_NAME']
I tested this:
<?php echo $_SERVER['SERVER_NAME'] ?>
and got this: 127.0.0.1
That's not right, is it?
Jeff
<?php echo $_SERVER['SERVER_NAME'] ?>
and got this: 127.0.0.1
That's not right, is it?
Jeff
- Wed Mar 19, 2003 3:13 pm
- Forum: PHP - Code
- Topic: Relative Paths & Document Root
- Replies: 8
- Views: 1538
Thanks!
I'll give that a shot.
Jeff
Jeff
- Wed Mar 19, 2003 2:19 pm
- Forum: PHP - Code
- Topic: Relative Paths & Document Root
- Replies: 8
- Views: 1538
Yes...but...
The only problem I see with that solution is that it is tied to a particular domain.
Thanks anyway for the suggestion.
Jeff
Thanks anyway for the suggestion.
Jeff
- Mon Mar 17, 2003 8:27 am
- Forum: PHP - Code
- Topic: Relative Paths & Document Root
- Replies: 8
- Views: 1538
Relative Paths & Document Root
Here's the issue. All the pages on my website have a form. When a user clicks on "Submit" it sends them to another page. However, since these pages can reside either in the root directory or can be down a level or two in another subdirectory, the "action" part of the form has to ...
- Mon Mar 17, 2003 8:18 am
- Forum: PHP - Code
- Topic: Clear out form values after submitting form
- Replies: 7
- Views: 947
Thanks for suggestion & help
Sorry for the late reply. I've been buried in other programming issues.
I also like CraigH's suggestion. That may be the one I try first.
Jeff
I also like CraigH's suggestion. That may be the one I try first.
Jeff
- Thu Mar 13, 2003 7:29 am
- Forum: PHP - Code
- Topic: Clear out form values after submitting form
- Replies: 7
- Views: 947
No luck with Session Vars
Thanks for your suggestion. I tried the following: value="<?php echo stripslashes(trim($_SESSION['srYd_sYardName']))?>" and then, after submitting, added this: session_unregister('srYd_sYardName'); session_destroy(); However, IE 6 still retained the values in the form. The Javascript solut...
- Wed Mar 12, 2003 9:28 pm
- Forum: PHP - Code
- Topic: Clear out form values after submitting form
- Replies: 7
- Views: 947
Re: Clear out form values after submitting form
So, in order to keep a user from inserting multiple instances of the same data, on page 3, before you insert data, you lookup data that is the same and if so, do not do the insert. This is best acheived with somekind of unique identifier (hidden on the first page form). You can then look this up in...
- Wed Mar 12, 2003 9:06 pm
- Forum: PHP - Code
- Topic: Clear out form values after submitting form
- Replies: 7
- Views: 947
Clear out form values after submitting form
A user fills out a form on page 1. They are then sent to page 2 which displays the "posted" information. If everything is okay, page 2 runs a function which inserts the information into a database and the user is redirected to page 3 which lets them know that the data has been added to the...
- Thu Mar 06, 2003 9:20 pm
- Forum: PHP - Code
- Topic: Passing values from one form to several forms
- Replies: 4
- Views: 1311
Sessions Destroyed!!
Thanks for the info. I'm now delving into the books...I bought a ton of them ("PHP/MYSQL for Dummies", "PHP Advanced" by Ullman, "Dreamweaver MX & PHP", "PHP Functions Reference"....and so on).
Jeff
Jeff
- Thu Mar 06, 2003 8:33 pm
- Forum: PHP - Code
- Topic: Passing values from one form to several forms
- Replies: 4
- Views: 1311
Sessions
What happens to the session if the user doesn't complete the process?
Does the session automatically time out?
Jeff
Does the session automatically time out?
Jeff
- Thu Mar 06, 2003 8:05 pm
- Forum: PHP - Code
- Topic: Passing values from one form to several forms
- Replies: 4
- Views: 1311
Passing values from one form to several forms
First, let me say I'm a PHP newbie but I'm learning to love using. Second, here's the situation. On Form 1 the user fills in the fields. On Submit, the user is sent to Form 2. This form uses a function to grab the $_POST vars and display it on the form so the user can see a confirmation page. I want...