![]() |
|
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. |
| |||||||
| 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. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| 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/ | |||
|
| | #2 | ||
| "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 | |||
|
| Featured Websites | ||||
|
![]() |
| Tags: cookies, data, html, page, pass, without |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
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 | ||||
|