[PHP] Clearing Post Data with IE

2004-03-22 Thread Chris Thomas
Hey, Im writing a script for a poll, and im trying to figure out how to clear the _post. Right now i post the response that the user selected from the poll, back to the poll page, which then displays the results The way it works right now, if i try to refresh the page, IE will pop a dialog back a

Re: [PHP] Clearing Post Data with IE

2004-03-23 Thread Chris Thomas
I tried using the Header('location: ') but it seems the posted data follows the redirection Im going from my main page to a processing page then back to my main page. i printed $_POST on the main page and it still has the values that were originally posted to the processing page. Also after th

[PHP] Header Redirect & POST

2004-03-25 Thread Chris Thomas
I am not sure if this was designed like this, or if its just something im doing wrong. Im posting some data to a processing page, where i handle it then use Header('Location: other.php') to direct me to another page. The problem that im running into is that the posted data is available in other.p

Re: [PHP] Header Redirect & POST

2004-03-25 Thread Chris Thomas
Header("Location: $calling"); exit(); } Chris "Jason Giangrande" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Chris Thomas wrote: > > I am not sure if this was designed like this, or if its just something im > > doing wrong. > &

[PHP] $_SESSION vs Database Call

2004-03-25 Thread Chris Thomas
Just wondering, what is faster / more effecient, storing a value in the session variable which gets stored on the filesystem (from what i understand) or database calls to re-get the information? Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

[PHP] sprintf troubles

2004-03-26 Thread Chris Thomas
Hey, Im trying to use sprintf to format a number and left pad it with spaces, but it doesnt want to add the spaces I can pad it with anyother char using sprintf("%'_8.2f, $val) which will left-pad the number with underscores Has anyone had any luck padding with spaces?? or is there a better way

[PHP] Re: Can't to insert data ( via variable ) into MS-SQL

2004-03-26 Thread Chris Thomas
Do you have register_globals on? If not ayou have to get the POST information manually. ie.. $job = $_POST['job'] Also are you sure that you are connecting to the database successfully? add: or die('could not connect') to the end of your mssql_pconnect and mssql_select_db statements. So your s

[PHP] Relative Url

2004-04-01 Thread Chris Thomas
Is there anyway that i can get a url relative to my server for a script that is being run?? The script is being included in mulitple files and $_SERVER['SCRIPT_NAME'] just gives me the name of the file that is including the other scripts. Also $_SERVER['SCRIPT_FILENAME'] is returning nothing. Tha

Re: [PHP] Relative Url

2004-04-02 Thread Chris Thomas
stylesheet from the calling file (ie index.php) I probally should have thought of this a little more before i posted...oh well Chris "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- Chris Thomas <[EMAIL PROTECTED]> wrote: > > Is th