abhinavsingh89 Posted October 8, 2009 Share Posted October 8, 2009 guys m new to php.. I have a task. I have to display a form if some values are satisfied else another form on same page. Basically i am wondering how to put HTML code inside PHP scripting blocks. CAN anybody plz help??? Link to comment https://forums.phpfreaks.com/topic/177008-newbee/ Share on other sites More sharing options...
abhinavsingh89 Posted October 8, 2009 Author Share Posted October 8, 2009 basically m developing an e comm website which is integrated with paypal and i wanna make sure that only authorized users gets access to the buy now and add to cart button. so if anyone can suggest any other thing plz do that. Thanking you all in advance. Link to comment https://forums.phpfreaks.com/topic/177008-newbee/#findComment-933272 Share on other sites More sharing options...
johnsmith153 Posted October 8, 2009 Share Posted October 8, 2009 <?php if($a==1) { ?> put html here 1 <?php } else { ?> put html here 2 <?php } ?> Can't advise on PayPal shopping cart as never used, but be careful that just because a user doesn't see a button, doesn't mean that a hacker can't use it. For example, if the button accesses www.hello.com?action=delete then the user could simply enter this in an url. Same applies to if using POST, user can create any form and POST values. Link to comment https://forums.phpfreaks.com/topic/177008-newbee/#findComment-933279 Share on other sites More sharing options...
abhinavsingh89 Posted October 8, 2009 Author Share Posted October 8, 2009 ohhkk... thnx a lot for the answer it was really helpful..nd will keep that in mind.... thnx a lot again.. Link to comment https://forums.phpfreaks.com/topic/177008-newbee/#findComment-933297 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.