Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2010
    Thanked 0 Times in 0 Posts

    Form 'Submit' Button

    Ok, please let me explain a little of what I am trying to do and what its for

    This is the form:
    <form method='get'>
             <td style='background-color:#578EBD'>
                   <input type="submit" name="enter" value="Enter">
                   <input type="hidden" name="show_id" value={$row['id']}>
                   <input type="hidden" name="level" value=$level>
    			   		 <input type=hidden name=show_type value='$_POST[show_type]'>
    		 <input type=hidden name=show_level value='$_POST[show_level]'>
    		 <input type=hidden name=show_price value='$_POST[show_price]'>
    		 <input type=hidden name=show_run value='$_POST[show_run]'>
    Now, I need to make it so that once users have clicked the 'Enter' button, for their browser session, it shows they have clicked it (not sure if I am explaining this well!)

    I believe I have 2 options but I am driving myself crazy trying to figure it out and any help is VERY much appreciated!

    1. Make the 'Enter' submit button a a href link...but cant work out how to do this
    2. Make the 'Enter' button change colour once clicked...again, not a clue. I did think about trying to add a link style but dont think that would work

    Thank you for any help offered xxx

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Halle (Saale), Germany
    Thanked 1,052 Times in 1,025 Posts
    You have to check with PHP if the user is logged in (or whatever is different after they click the enter button) and then assign a class to that button or add a welcome message (a div wherever you want with text in it) or whatever. You can then style this with CSS.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts