Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Re-creating a Registration Page ?

Reply
Thread Tools

Re-creating a Registration Page ?

 
 
Mel Smith
Guest
Posts: n/a
 
      01-19-2009
Hi:

Scenario:
My new user submits a registration page to my server (either incomplete
or incorrect input in some fields).

I wish to 'rebuild' this complex registration page using the original
page *plus* fill-in user's submitted data back into the original page, then
send it back at him with an error message to correct it and re-submit.

Leaving out the usage of Javascript at the client's end (for now), is
there a 'classic' way to do this ?? or how do *you* folks do it ?

(if not, then I am faced with rebuilding the Reg Page in my CGI program
(using user's inputs instead of my original 'blank' fields), which is a
*lot* of string manipulation for each input field)

I wonder if I could start up an instance of IE on my *server*, then
learn about innerhtml stuff and do the replacement of fields somehow -- What
a hope (

Also it would be nice if I could leave an invisible unique marker in
front of each of perhaps 20 input fields so later I could find the values I
need to replace during parsing.

Thanks,
--
Mel Smith


 
Reply With Quote
 
 
 
 
Neredbojias
Guest
Posts: n/a
 
      01-19-2009
On 19 Jan 2009, "Mel Smith" <> wrote:

> Hi:
>
> Scenario:
> My new user submits a registration page to my server (either
> incomplete
> or incorrect input in some fields).
>
> I wish to 'rebuild' this complex registration page using the
> original
> page *plus* fill-in user's submitted data back into the original
> page, then send it back at him with an error message to correct it
> and re-submit.
>
> Leaving out the usage of Javascript at the client's end (for
> now), is
> there a 'classic' way to do this ?? or how do *you* folks do it ?
>
> (if not, then I am faced with rebuilding the Reg Page in my CGI
> program
> (using user's inputs instead of my original 'blank' fields), which is
> a *lot* of string manipulation for each input field)
>
> I wonder if I could start up an instance of IE on my *server*,
> then
> learn about innerhtml stuff and do the replacement of fields somehow
> -- What a hope (
>
> Also it would be nice if I could leave an invisible unique marker
> in
> front of each of perhaps 20 input fields so later I could find the
> values I need to replace during parsing.


Php is made for this. Conditionals on each field can "reload" the page
(with fields) until correct.

--
Neredbojias
http://www.neredbojias.org/
http://www.neredbojias.net/
The road to Heaven is paved with bad intentions.
 
Reply With Quote
 
 
 
 
Mel Smith
Guest
Posts: n/a
 
      01-20-2009
Neredbojias said:
>
> Php is made for this. Conditionals on each field can "reload" the page
> (with fields) until correct.


Neredbojias:

Unfortunately (or fortunately), my CGI app is written in a c-type
languafe *xharbour -- www.xharbour.com), so I'm using that instead.

However, in the last few hours I've discovered a new method/technique
for doing this.

It involves an 'automation object' in my xharbour language that produces
an instance of an IE class, then I can 'get()' and 'set()' fields.

Altho I havern't got it 'aced' yet, it looks like:

********************************************
oIE:Visible := .F.
cWebSite := "\CGI\FORMS\TEST.HTM"

oIE:Navigate(cWebSite)
while oIE:busy
SecondsSleep(1.00)
ENDDO
x := oIE:document:getElementByID("uemail")
// now since x is an 'object'

cStr := x:get("value")
x:set("value","a new email")

cStr := x:get("value")
alert("new email="+cStr)

// etcetera ...

oIE:QUIT()

It seems to work correctly. But, I've got to do extensive testing.

(I hate to contemplate 100 users arriving simultaneously, and me starting up
100 instances of IE --- Arggg)

Sorry to trouble you folks.

-Mel Smith






 
Reply With Quote
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      01-20-2009
Mel Smith wrote:

> Scenario:
> My new user submits a registration page to my server (either
> incomplete or incorrect input in some fields).


Study this:
http://safalra.com/programming/php/c...feedback-form/

--
-bts
-Friends don't let friends drive Windows
 
Reply With Quote
 
Mel Smith
Guest
Posts: n/a
 
      01-20-2009
Beau said:

> Study this:
> http://safalra.com/programming/php/c...feedback-form/



Beauu:

I'll study it but I don't know PHP.

-Mel


 
Reply With Quote
 
Neredbojias
Guest
Posts: n/a
 
      01-20-2009
On 19 Jan 2009, "Mel Smith" <> wrote:

> Neredbojias said:
>>
>> Php is made for this. Conditionals on each field can "reload" the
>> page (with fields) until correct.

>
> Neredbojias:
>
> Unfortunately (or fortunately), my CGI app is written in a c-type
> languafe *xharbour -- www.xharbour.com), so I'm using that instead.
>
> However, in the last few hours I've discovered a new
> method/technique
> for doing this.
>
> It involves an 'automation object' in my xharbour language that
> produces
> an instance of an IE class, then I can 'get()' and 'set()' fields.
>
> Altho I havern't got it 'aced' yet, it looks like:
>
> ********************************************
> oIE:Visible := .F.
> cWebSite := "\CGI\FORMS\TEST.HTM"
>
> oIE:Navigate(cWebSite)
> while oIE:busy
> SecondsSleep(1.00)
> ENDDO
> x := oIE:document:getElementByID("uemail")
> // now since x is an 'object'
>
> cStr := x:get("value")
> x:set("value","a new email")
>
> cStr := x:get("value")
> alert("new email="+cStr)
>
> // etcetera ...
>
> oIE:QUIT()
>
> It seems to work correctly. But, I've got to do extensive testing.
>
> (I hate to contemplate 100 users arriving simultaneously, and me
> starting up 100 instances of IE --- Arggg)
>
> Sorry to trouble you folks.


Well, as unfamiliar with xharbour as I am, it seems like you're using a
procedure relatively similar to what I suggested with php. Not sure
how good it is to create many instances of IE, but...

--
Neredbojias
http://www.neredbojias.org/
http://www.neredbojias.net/
The road to Heaven is paved with bad intentions.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirect visitors to registration page Paul Evans ASP .Net 3 12-21-2004 11:49 PM
Registration Confirmation Page Greg Collins [InfoPath MVP] ASP .Net 6 12-10-2004 03:04 PM
Registration page for Corporate Event/Forum blantz ASP .Net 2 12-02-2004 07:51 AM
Forms autentication and registration page - some advices NWx ASP .Net 1 02-13-2004 06:23 AM
TILES: Converting registration page from struts example = nullpointer? Jack Java 7 07-30-2003 02:47 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57