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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.