Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #7861
| From | "P E Schoen" <paul@peschoen.com> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Using echo to run separate PHP script from HTML |
| Date | 2012-12-19 16:59 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <katdbh$d39$1@dont-email.me> (permalink) |
| References | <kasc1f$m0s$1@dont-email.me> <9ml3d8te6o6c4u2f17hov6o0cuvp2bg8c7@4ax.com> <kat04s$k96$1@dont-email.me> <kat6lp$vdt$2@dont-email.me> |
"Jerry Stuckle" wrote in message news:kat6lp$vdt$2@dont-email.me... > That should not make a difference. ANSI is fine. The FTP transfer should > be text (not binary) mode, and will take care of the line end differences. But I am editing the files on my local machine Apache server, so FTP is not used. I'm using the evaluation version of perledit, but I think I should try one of the other editors designed for code, such as notepad++ as suggested by Luuk. Now that I can get the PHP to work, I want to add some more functionality to this. There are some widgets that are designed to handle contributions through PayPal and other services, but I wanted to make something simple that my friend can easily add to his forum: http://dogsnharmony.com/community/ What I have now can be handled by simply adding the line: <img src="goalgraph.php" alt="Help us get to our goal" /> The graph can be updated by manually uploading a new "goalgraphdata.txt" file with the amounts on an occasional basis, although it would be nice to see the graph update when the contribution is made. So I wanted to simulate this by having text controls where a member can enter an amount, and then click a "Contribute" button, and have the graph update accordingly. There could also be another text box showing the total contributions. But I'm not sure quite how to do this. As it is now set up, I would have to add the new quantity, as entered in the HTML page, to the URL parameters in the PHP code. Or I could just write the new values to the text file. But I'm not sure how to transfer the values in the HTML controls to PHP variables to be written to the file. I can't find any PHP functions that would provide a listbox or textbox where a user can enter data. Of course, I could echo an HTML input of type text, but I'm not sure if the value is visible to PHP, as it is with JavaScript. Maybe this requires JSON or an equivalent. Any ideas? Thanks, Paul
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Using echo to run separate PHP script from HTML "P E Schoen" <paul@peschoen.com> - 2012-12-19 07:30 -0500
Re: Using echo to run separate PHP script from HTML Richard Yates <richard@yatesguitar.com> - 2012-12-19 07:02 -0800
Re: Using echo to run separate PHP script from HTML "P E Schoen" <paul@peschoen.com> - 2012-12-19 13:13 -0500
Re: Using echo to run separate PHP script from HTML Jerry Stuckle <jstucklex@attglobal.net> - 2012-12-19 15:05 -0500
Re: Using echo to run separate PHP script from HTML "P E Schoen" <paul@peschoen.com> - 2012-12-19 16:59 -0500
Re: Using echo to run separate PHP script from HTML Jerry Stuckle <jstucklex@attglobal.net> - 2012-12-19 17:50 -0500
Re: Using echo to run separate PHP script from HTML Luuk <luuk@invalid.lan> - 2012-12-19 21:23 +0100
Re: Using echo to run separate PHP script from HTML "P E Schoen" <paul@peschoen.com> - 2012-12-19 18:33 -0500
Re: Using echo to run separate PHP script from HTML Richard Yates <richard@yatesguitar.com> - 2012-12-19 17:24 -0800
Re: Using echo to run separate PHP script from HTML "Peter H. Coffin" <hellsop@ninehells.com> - 2012-12-19 14:32 -0600
Re: Using echo to run separate PHP script from HTML Jerry Stuckle <jstucklex@attglobal.net> - 2012-12-19 17:51 -0500
Re: Using echo to run separate PHP script from HTML The Natural Philosopher <tnp@invalid.invalid> - 2012-12-19 16:04 +0000
Re: Using echo to run separate PHP script from HTML "P E Schoen" <paul@peschoen.com> - 2012-12-19 13:23 -0500
csiph-web