Computer Webmaster Gaming Console Graphics Forum

Welcome to the Computer Webmaster Gaming Console Graphics Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

MK PitStop Main Earn $25 Earn Money Posting Extras Members Blogs Image Hosting User Pages
Go Back   Computer Webmaster Gaming Console Graphics Forum > Webmaster Forum > Website Coding > PHP
Register FAQ/Rules Become A V.I.P. Member Search Today's Posts Mark Forums Read

PHP PHP for some can be one of the hardest website programming codes, so do you need help on your PHP script, if it is php4, php5 or lower this is the place for you for any PHP help.

Google
Reply
 
LinkBack Thread Tools Display Modes
Old 07-01-2007, 3:36 PM   #1
Robert Oschler
 
Robert Oschler's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default How to pass data to HTML page without cookies?

I have an HTML page with edit fields on it. When the page's Submit button
is pressed from within the browser, the edit fields values are submitted to
a PHP script running on my server via the POST request method.

What I want to do from within my server side PHP script, is "pass" those
variables on to another HTML page running on the server. If all goes well,
than the browser will display the HTML page, which will use Javascript to
plug those transferred edit field values into some display elements on the
page.

What I don't know how to do is how to tell the browser, to navigate to the
new HTML page with the edit field values going along for the ride. I don't
want to use cookies in case they're blocked. The only thing I can think of
is using a REDIRECT. Would this be the proper way to this? If so, how
would I execute/emulate a POST to the new HTML page using a REDIRECT (a
re-post I guess).


I have a server side PHP script which receives certain information from an
HTML page, running on a client side browser, via the page's FORM action.
What I want to do is pass these variables on to

--

Robert Oschler
"Let the web hear you, add your voice to your web site in minutes!"
-- http://audiodirect.spiderchase.com/
(For a limited time, free voiceover with every sign-up, use this link
instead)
-- http://audio.spiderchase.com/


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-01-2007, 3:37 PM   #2
Ron
 
Ron's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default How to pass data to HTML page without cookies?

"Robert Oschler" <no_replies@fake_email_address.invalid> wrote in message
news:n%kQa.185$3y4.266880@news2.news.adelphia.net. ..
> I have an HTML page with edit fields on it. When the page's Submit button
> is pressed from within the browser, the edit fields values are submitted

to
> a PHP script running on my server via the POST request method.
>
> What I want to do from within my server side PHP script, is "pass" those
> variables on to another HTML page running on the server. If all goes

well,
> than the browser will display the HTML page, which will use Javascript to
> plug those transferred edit field values into some display elements on the
> page.
>
> What I don't know how to do is how to tell the browser, to navigate to the
> new HTML page with the edit field values going along for the ride. I

don't
> want to use cookies in case they're blocked. The only thing I can think

of
> is using a REDIRECT. Would this be the proper way to this? If so, how
> would I execute/emulate a POST to the new HTML page using a REDIRECT (a
> re-post I guess).
>
>
> I have a server side PHP script which receives certain information from an
> HTML page, running on a client side browser, via the page's FORM action.
> What I want to do is pass these variables on to
>
> --
>
> Robert Oschler
> "Let the web hear you, add your voice to your web site in minutes!"
> -- http://audiodirect.spiderchase.com/
> (For a limited time, free voiceover with every sign-up, use this link
> instead)
> -- http://audio.spiderchase.com/
>


Robert,

The best way would be for the script to output the HTML page itself.
What does the script currently return to the browser ?

To send your HTML page, you need to include it in the script.

Say your submit button is called FRED

detect that FRED has been pressed :
and output the html page in reply
<?php

if ($_POST['FRED']){
include 'My_HTML_PAGE.html' ;
}
?>

Now before you do that you will need to edit your html page to allow for the
inserts

<snip my_html_page>
<h1> <?php echo $myheading ; ?></h1> // note the semicolon !
</snip>

so provided your script loads a value into the scalar ' $myheading ' before
the page is included, the html page will display the value of $myheading
as an H1 heading in this example or whatever wherever you want it to be -
you can even preload form controls just set the control value to the php
expression .

happy coding

Ron



 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Featured Websites
Free Space
Free Space
Free Space Free Space
Reply
Tags: , , , , ,




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I render user entered HTML without messing up my own page... Alex Paransky HTML 4 07-01-2007 2:06 PM
page with no .html olwen HTML 6 07-01-2007 1:57 PM
Pass an argument to Load data Infile Dale Database 0 05-31-2007 8:42 PM
cvs: pear /PEAR_Frontend_Web/Frontend Web.php /PEAR_Frontend_Web/data/templates header.inc.tpl.html Pear 0 05-27-2007 7:46 PM
cvs: pear /PEAR_Frontend_Web pearfrontendweb.php /PEAR_Frontend_Web/Frontend Web.php /PEAR_Frontend_Web/data style.css /PEAR_Frontend_Web/data/templates top.inc.tpl.html /PEAR_Frontend_Web/docs example.php index.php.txt Pear 0 05-27-2007 7:46 PM


Featured Websites




All times are GMT +1. The time now is 3:23 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Cheap Computers
MK PitStop Copyright 2005 - 2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98