Jump to content


Photo

How to create php form like this?!


Best Answer Psycho, 13 February 2018 - 05:37 PM

The only "form" I see on that site is a group of radio buttons. The only thing special I see is that the radio buttons possibly have custom CSS applied to change their appearance. See this example: https://www.w3school...om_checkbox.asp

 

Or, it could be that they are "plain" radio buttons at all. They also look similar to JQueryUI radio buttons: https://jqueryui.com...dio/#radiogroup

Except that the example above has the button and label within a "button" that changes background color based on the selected state of the radio button.

 

Or, if there is more to the form than the radio buttons, you will need to point it out. That was the only thing I saw as field input on that page.

Go to the full post


  • Please log in to reply
2 replies to this topic

#1 Ramadan

Ramadan
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 13 February 2018 - 02:00 PM

Hi,

I want to create a php form like this site:

https://ariananews.co/weather/

how to do this?

 

Thanks



#2 ginerjm

ginerjm
  • Members
  • PipPipPip
  • Handball player
  • 4,129 posts
  • LocationVoorheesville NY

Posted 13 February 2018 - 02:16 PM

Since it is ANOTHER LANGUAGE! what exactly are you looking to do? You probably want to use div tags to separate the different sections. Then use proper CSS and HTML to display the contents of each. Be sure to write your script to keep all of this complex html code SEPARATE from the php code that is creating the dynamic parts. Dont' mix php code inside the html - it just makes it too difficult to read and maintain.
JG
PS - If you're posting here you should be using:
        error_reporting(E_ALL);
        ini_set('display_errors', '1');

at the top of ALL php code while you develop it!

#3 Psycho

Psycho
  • Moderators
  • Move along, nothing to see here
  • 11,892 posts
  • LocationCanada

Posted 13 February 2018 - 05:37 PM   Best Answer

The only "form" I see on that site is a group of radio buttons. The only thing special I see is that the radio buttons possibly have custom CSS applied to change their appearance. See this example: https://www.w3school...om_checkbox.asp

 

Or, it could be that they are "plain" radio buttons at all. They also look similar to JQueryUI radio buttons: https://jqueryui.com...dio/#radiogroup

Except that the example above has the button and label within a "button" that changes background color based on the selected state of the radio button.

 

Or, if there is more to the form than the radio buttons, you will need to point it out. That was the only thing I saw as field input on that page.


The quality of the responses received is directly proportional to the quality of the question asked.

I do not always test the code I provide, so there may be some syntax errors. In 99% of all cases I found the solution to your problem here: http://www.php.net




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users