Jump to content

[SOLVED] create registration module


alecoder

Recommended Posts

hey all

i have question

then For example we have Form registration I will make summary

$user_bg = "white";

$user_value = "";

 

$email_bg = "white";

$email_value = "";

<form action="registration.php" method="post">

<b>Name</b><input type="text" name="user" value="<?php echo $user_value?>">

<b>Email</b><input type="text" name="email" value="<?php echo $email_value?>">

<input type="submit" name="Submit">

</form>

 

then

I want to make so

only click submit button

if (empty($_POST['name']) || strlen($_POST['user']) < 4) {$user_bg = "red"; } then return input border red

and else {$user_value = $_POST['name'];}

and analogue in email

 

If did not understand here is see to picture

testlh1.jpg

 

 

Link to comment
https://forums.phpfreaks.com/topic/85585-solved-create-registration-module/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.