FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Using echo to run separate PHP script from HTML
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Using echo to run separate PHP script from HTML [message #179931 is a reply to message #179929] Wed, 19 December 2012 22:50 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 12/19/2012 4:59 PM, P E Schoen wrote:
> "Jerry Stuckle" wrote in message news:kat6lp$vdt$2(at)dont-email(dot)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.
>

Then you should be using the same OS for Apache as you are for your
editor, and EOL differences should not be a problem.

> 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

There are none. PHP runs on the server, not the client. It
communicates with the client via HTTP. You need to send the appropriate
HTML to the client and get the response back when the user submits the form.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: passing values into javascript
Next Topic: Digest Authentication
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 04:47:32 GMT 2024

Total time taken to generate the page: 0.06604 seconds