Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Stored Or Global Variable?
kvarnerexpress
post Jun 23 2005, 09:18 PM
Post #1


Super Member
*********

Group: Members
Posts: 407
Joined: 13-December 04
Member No.: 2,696



I've created a form, nothing special, that uses a php script as a form action to input data into mysql. Nothing special at all about this scenario. One thing I'd like to do is have the php script redirect the user back to the html page that has the form the user just completed. I don't want to have to hard code the url into the header function because I use this php script with a bunch of other pages. Does PHP store the value of this page into some variable that the php script can use? Thanks.

kvarnerexpress
Go to the top of the page
 
+Quote Post
hype
post Jun 24 2005, 12:19 AM
Post #2


Legend Killer
*********

Group: Members
Posts: 678
Joined: 15-April 05
From: Singapore
Member No.: 5,697



Simply use the echo tag after the submit of forms and the put the url redirection codes to redirect it back... you can put different echos on different form submission..
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Calling A Variable From A Dynamic List In A Sql Statement(2)
  2. Php Parse Error(2)
  3. Calling A False Variable...(6)
  4. Determining Whether A Phrase Is In A Variable(2)
  5. Alternative To File()?(4)
  6. <textarea> Tag Is Not Accepting Php Variable(2)
  7. Converting Characters In A Variable To Individual Values In An Array(2)
  8. Php Form Help!(3)
  9. Problem With Global Arrays(2)
  10. Getting An Array Value Of A Dynamic Variable(9)
  11. Script Help Required: Undefined Variable(3)
  12. Unexpected T_variable...(3)


 



- Lo-Fi Version Time is now: 12th October 2008 - 02:09 PM