Create Rounded forms in html

anuj_web

New Member
Messages
145
Reaction score
0
Points
0
Hi

can neone help me
I want to make a rounded html form without using ne s/w

One more thing... how can i chose not to display complete url of my webpages through coding ??

and if I want to code b/w JAVA and Mysql can this be done on the servers of X10hosting.Because to connect JAVA with MySQL ,connectorJ needs to be there on the server too...


thanks
 
Last edited:

konekt

New Member
Messages
100
Reaction score
0
Points
0
Your Java question was answered, and yes it can.

I really have no idea what you're asking with the forms... you want to style a form to have rounded corners? The text box to have rounded corners? I'm a little lost...

I also don't know what you mean by full URL. Do you not want it to be like ...script.php?variables.... if so then just use a POST submit instead a GET.
 

anuj_web

New Member
Messages
145
Reaction score
0
Points
0
Hi ,

yes i want the form to have rounded corners ...i found that by using border parameter in the div tag i can make borders with different styles...
but cant find a way to have rounded corners

Wat i mean by complete url is ... that if i open a webpage stored on the server,i want the address bar not to show the file name,but instead show my main domain name only ...is it possible ??

And yes my JAVA ques was answered :D


thanks for replying
 

woiwky

New Member
Messages
390
Reaction score
0
Points
0
For rounded corners, it's best to accomplish this with images since that works regardless of the client browser. Mozilla supports the "-moz-border-radius" css property, but as far as I know IE doesn't have anything like that. Images are the most reliable and efficient way to do this until css3 is out and well supported.

Here's an MSDN tut on making rounded borders with images:

http://msdn2.microsoft.com/en-us/library/bb250413(VS.85).aspx

They write a lot for such a simple concept, but that was the best I could find.
 

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
There is a javascript, css and images solution here called NiceForms. It makes form fields customisable. The default set-up has rounded corners, and a background to text fields. But you can change it if you wish.
I have tried it once but didn't have much luck with getting it to work. However I don't know much javascript, so I could have missed something.

EDIT: This is my 300 post. :biggrin:
 
Last edited:

marshian

New Member
Messages
526
Reaction score
9
Points
0
For the question about the url...
I think it would be possible to do with php...

What you can do is the following:
1: the user attempts to access a page, you redirect him to your main index page, but you pass on a posted variable to that page
2: your main index page should know what to do with that variable and show the right page

I'll try to make an example

EDIT: I'm not sure there is a way to redirect to another page AND send post variables at the same time... I think I'm going to use a different approach with the same effect
 
Last edited:

marshian

New Member
Messages
526
Reaction score
9
Points
0
I finished the example!

Since I don't think it is possible, I don't submit any POST info to the index page while redirecting, I use sessions to get data to the main page...

The pages:
http://www.marshian.uk.to/url/index.php
http://www.marshian.uk.to/url/page.php

The source:
index.php
PHP:
<?php
session_start();
if($_SESSION["dat"]["page"] == "page.php") {
	echo "You accessed page.php<br />";
}
if(!isset($_SESSION["dat"]["page"])) {
	echo "You accessed the main index page.<br />";
}
echo "You passed the following variables:<br />";
echo "== start ==<br />";
if(isset($_SESSION["dat"])) {
	foreach($_SESSION["dat"] as $key => $content) {
		echo "\$_SESSION[\"dat\"][\"$key\"] = \"$content\"<br />";
	}
	if(isset($_SESSION["dat"]["GET"])) {
		foreach($_SESSION["dat"]["GET"] as $key => $content) {
			echo "\$_SESSION[\"dat\"][\"GET\"][\"$key\"] = \"$content\"<br />";
		}
	}
	if(isset($_SESSION["dat"]["POST"])) {
		foreach($_SESSION["dat"]["POST"] as $key => $content) {
			echo "\$_SESSION[\"dat\"][\"POST\"][\"$key\"] = \"$content\"<br />";
		}
	}
}
foreach($_GET as $key => $content) {
	echo "\$_GET[$key] => $content<br />";
}
echo "== end ==";
unset($_SESSION["dat"]);
?>

page.php
PHP:
<?php
session_start();
$dat["page"] = "page.php";
foreach($_GET as $key => $data) {
	$dat["GET"][$key] = $data;
}
foreach($_POST as $key => $data) {
	$dat["POST_".$key] = $data;
}
$_SESSION["dat"] = $dat;
header("Location: /url", true, 307);
?>


If you want any further help with this, just ask.

- Marshian

PS: the code also works with any GET or POST submitted to the page.php

EDIT: forgot to mention I don't submit any POST info to the index page, I use sessions to get data to the main page...
 
Last edited:

anuj_web

New Member
Messages
145
Reaction score
0
Points
0
thank you dear friends for your replies
i found them very useful
@marshian

thanks for coding an example to explain it 2 me

thanks again
 
Top