Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prompt and continue

Status
Not open for further replies.

skiflyer

Programmer
Sep 24, 2002
2,213
US
Is there a way to pause the preprocessor while waiting for a button response, and then continue based on the value?

i.e. in asp I can say
Code:
if msgbox("Are you sure you want to continue",vbYesNo) = vbNo then
	window.close
	Exit Sub
end if

Can I do the same thing in PHP?

Please say yes :)

-Rob
 
Honestly... it's being done in a mess of a page I inherited and am switching php/javascript, and it looked server side... but now that I dig into a little more, I think you're right... though I'm still investigating... this thing is the biggest combination of vb, vbscript, javascript that I've seen and it's virtually impossible to tell where one begins and the other ends.

-Rob

(I'll take that as a now to your knowledge in php?)
 
I'd bet good money that the VB code you're seeing is actually VBScript code that runs on the client.

There is no reason why you cannot use the same thing with PHP -- though I recommend that you do it in JavaScript rather than VBScript. JavaScript is supported by more browsers. Want the best answers? Ask the best questions: TANSTAAFL!
 
Oh yes, vbscript is making an elegant exit from this page in it's new form...

Thanks for the information.

-Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top