Re: [PHP] JS prompt -> php



Ryan A wrote:
Hey all!

Quick question (and hopefully a simple one)

I have a link on a page, when the client clicks that link it should show them a JS prompt and ask for their name (so far I have done this)

When they write their name, I want that data to be sent to my php script via AJAX (yes?) so the page does not reload or anything.... (actually, how can i reload the page to reflect the change?)

I have googled but I see whole ajax classes and what not, I dont know if I am using the correct keywords or what... you would happen to have a working piece of code that you could share with me.. would you?

Thanks!
Ryan


------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
---------------------------------
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.

Google Ajax How-to or Ajax How-to POST

The 3rd or 4th item for plain how-to is:
http://swik.net/Ajax/How+to+use+XMLHttpRequest

This first item for how-to POST:
http://www.captain.at/howto-ajax-form-post-request.php



--

_____________________
Myron Turner
http://www.room535.org
http://www.bstatzero.org
http://www.mturner.org/XML_PullParser/
.



Relevant Pages

  • JS prompt -> php
    ... Hey all! ... I have a link on a page, when the client clicks that link it should show them a JS prompt and ask for their name ... I want that data to be sent to my php script via AJAX so the page does not reload or anything.... ... I have googled but I see whole ajax classes and what not, I dont know if I am using the correct keywords or what... ...
    (php.general)
  • HTTP in the background in IE
    ... I exit & reload the main page multiple times, ... "/update.html" requests, ... slow "/update.html" request for each client, and then when a new thread ... requests in parallel -- one for the main window, ...
    (comp.lang.javascript)
  • Re: RWW Desktop connection error...
    ... The client computer on the lan, ... remote computer that you're getting the error on. ... SBS Add computer wizard, and then http://servername/connectcomputer? ... I recently had to reload a client ...
    (microsoft.public.windows.server.sbs)
  • Re: can IIS disallow page reloads() by code ?
    ... JS:reloadis script code executed on the client ... So you are looking at client-side configuration. ... "Hernán Castelo" wrote in message ... > Page reload has nothing to do with IIS configuration. ...
    (microsoft.public.inetserver.iis)
  • Re: HijackThis Log Help
    ... and a wipe and reload. ... client that was just added and they were WAY behind in updating service ... and security fixes but they were running the TM CSM 3.6 (server and ... packs and running TM scans. ...
    (microsoft.public.windows.server.sbs)