hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : [Cookies] Form Buttons
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

[Cookies] Form Buttons

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 03-08-2008, 02:19 AM
JustinSmall JustinSmall is offline
Aspiring Evangelist
 
Join Date: Jan 2005
Location: North-East, Indiana
Posts: 417

[Cookies] Form Buttons


Ok, I have it set to where the popup comes up, then it sets the cookie... so it doesn't display the popup again...

however, I want it a different way... not sure on how to do it.

I need it to set a cookie once I hit the submit button

My current button is...

HTML Code:
<input type=\'submit\' value=\'Yes, I want to vote!\' onclick=\'Modalbox.hide()\' />

__________________
• PHP5 / MySQL / CUSTOM TEMPLATING / CLEAN & MAINTAINABLE CODING
• WEB DEVELOPMENT via CUSTOM DESIGN / PROGRAMMING


Reply With Quote


Sponsored Links
  #2  
Old 03-08-2008, 08:34 AM
maddysanoo maddysanoo is offline
New Member
 
Join Date: Apr 2007
Posts: 2
Red face

Hello,
Let me understand this, you want to get the cookie made once the button gets hit. That means you would definitely have a form that you need posted. What you should do is to put a hidden variable and check it once the form gets submitted check that variable if it got set or not and if it does; have the cookie made.
Let me know if you understand.
Regards,
Maddy

Reply With Quote
  #3  
Old 03-08-2008, 01:26 PM
JustinSmall JustinSmall is offline
Aspiring Evangelist
 
Join Date: Jan 2005
Location: North-East, Indiana
Posts: 417
It's a voting script. If you click yes, it redirects you. If you click no it doesn't closes the box that pops up.

http://getfreelanced.com/scripts/box

This is the script... I need it to set the cookie on the button.

__________________
• PHP5 / MySQL / CUSTOM TEMPLATING / CLEAN & MAINTAINABLE CODING
• WEB DEVELOPMENT via CUSTOM DESIGN / PROGRAMMING


Reply With Quote
Sponsored Links
  #4  
Old 03-09-2008, 03:23 AM
maddysanoo maddysanoo is offline
New Member
 
Join Date: Apr 2007
Posts: 2
Alright, wrote this simple code for you. There is one zip file attached to this post that will solve your problem. Let me know if this helps. If you want the explanation let me know. fileshelp.zip
Regards,
Maddy.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Lead Generation Part 2 – Content Syndication Blog 2012-12-12 12:37:59
Lead Generation Part 1 – Form Fills Blog 2012-11-16 09:03:48
New UK Cookie Law Impacts Customers - What About Hosts? Web Hosting News 2012-05-28 14:16:07
Security Researchers Find Phishing Sites on Google Docs Web Hosting News 2011-05-31 14:32:36
LinkedIn Access Cookie Opens Users to Security Breaches, says Security Analyst Web Hosting News 2011-05-24 14:19:01


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?