![]() |
|
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 | ||
| On 13-Jul-2003, "Robert Oschler" <no_replies@fake_email_address.invalid> wrote: > Suppose I have a web page that allows the site visitor to enter a Record > ID > via a form edit field. The FORM's action is to submit the data to a PHP > script running on my server (which also contains the HTML page). I want > to > display the record's data (happens to be a MySQL record), in a new HTML > page > with the record's data plugged into the HTML page's edit fields. > > I know I can build an HTML page with embedded Javascript snippets that set > the new HTML page's edit field values, but this seems like overkilll. I'd > rather have another static HTML page on the server, and somehow have my > PHP > script get it displayed in the site visitor's browser with the edit fields > filled in. I know I can use header+location to cause a redirect, but I'd > rather not pass a huge URL string with the record's data as search > arguments, to be plucked out of the URL by Javascript in the HTML page, to > be plugged into the edit fields. > > Is there an intelligent way to do this on the server side, or should I > just > hunker down and build the field display HTML page dynamically, instead of > using a static one? Yes. -- Tom Thackrey www.creative-light.com | |||
|
| | #2 | ||
| Tom Thackrey wrote: > On 13-Jul-2003, "Robert Oschler" <no_replies@fake_email_address.invalid> > wrote: > > >>Suppose I have a web page that allows the site visitor to enter a Record >>ID >>via a form edit field. The FORM's action is to submit the data to a PHP >>script running on my server (which also contains the HTML page). I want >>to >>display the record's data (happens to be a MySQL record), in a new HTML >>page >>with the record's data plugged into the HTML page's edit fields. >> >>I know I can build an HTML page with embedded Javascript snippets that set >>the new HTML page's edit field values, but this seems like overkilll. I'd >>rather have another static HTML page on the server, and somehow have my >>PHP >>script get it displayed in the site visitor's browser with the edit fields >>filled in. I know I can use header+location to cause a redirect, but I'd >>rather not pass a huge URL string with the record's data as search >>arguments, to be plucked out of the URL by Javascript in the HTML page, to >>be plugged into the edit fields. >> >>Is there an intelligent way to do this on the server side, or should I >>just >>hunker down and build the field display HTML page dynamically, instead of >>using a static one? > > > Yes. I had the same problem but now I have it working. Take a look at the soucecode of members.lycos.nl/****fennema (input should be '101', 'cause I only have 1 record in the MySQL database for testing) It doesn't look good because I only focussed on the technical (PHP) part of it not on the layout. I work with frames. Good luck. | |||
|
| Featured Websites | ||||
|
![]() |
| Tags: data, edit, html, page, pass |
| 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 to pass data to HTML page without cookies? | Robert Oschler | PHP | 1 | 07-01-2007 3:37 PM |
| 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 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 | ||||
|